summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjames.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-14 01:33:21 +0000
committerjames.wei@intel.com <james.wei@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-14 01:33:21 +0000
commit3ef04f22a601d06d491fe6f4969d9205cebc01f9 (patch)
treef0cae7f823a2b88737f93d11d93926f2391fa7fe /build
parentbb14f064c852c5a0782f1964eae4f4e9d34c9263 (diff)
downloadchromium_src-3ef04f22a601d06d491fe6f4969d9205cebc01f9.zip
chromium_src-3ef04f22a601d06d491fe6f4969d9205cebc01f9.tar.gz
chromium_src-3ef04f22a601d06d491fe6f4969d9205cebc01f9.tar.bz2
add option to suport setting target device for test
Sometimes multiple devices attached but want to run test suite on a specific device. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10532106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rwxr-xr-xbuild/android/run_tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index e9e1d70..f8aeb87 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',