Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2087)

Unified Diff: build/android/run_tests.py

Issue 10532106: add option to suport setting target device for test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_tests.py
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index e9e1d706295731cfef03e3793163626869de46e6..f8aeb87a21bd7424b06a64e3a51763fb3677562c 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -321,6 +321,8 @@ def _RunATestSuite(options):
# Wait for all emulators to become available.
map(lambda buildbot_emulator:buildbot_emulator.ConfirmLaunch(),
buildbot_emulators)
+ elif options.test_device:
+ attached_devices = [options.test_device]
else:
attached_devices = android_commands.GetAttachedDevices()
@@ -410,6 +412,8 @@ def main(argv):
option_parser.add_option('-s', '--suite', dest='test_suite',
help='Executable name of the test suite to run '
'(use -s help to list them)')
+ option_parser.add_option('-d', '--device', dest='test_device',
+ help='Target device the test suite to run ')
option_parser.add_option('-r', dest='rebaseline',
help='Rebaseline and update *testsuite_disabled',
action='store_true',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698