summaryrefslogtreecommitdiff
path: root/services/tests/runtests.py
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2016-10-27 10:33:56 -0700
committerEtan Cohen <etancohen@google.com>2016-10-27 10:34:47 -0700
commit31dc3db9a4d36475f464c5543d9b7df4a2f36aa3 (patch)
treea0e31664a1faa5111963f946206909176c38530f /services/tests/runtests.py
parente266c375598acb4c3f72976485379f6148c9ebcf (diff)
Update service test runner to allow test args
Change order of arguments - runner must be last argument. Test: executed test with arguments Change-Id: I9e69246281bce9814300fadc7e5d97ecf1a2bad2
Diffstat (limited to 'services/tests/runtests.py')
-rwxr-xr-xservices/tests/runtests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/tests/runtests.py b/services/tests/runtests.py
index 35fec90f6ac5..7980dc23e8e2 100755
--- a/services/tests/runtests.py
+++ b/services/tests/runtests.py
@@ -61,8 +61,8 @@ def main():
print 'Running tests...'
if len(sys.argv) != 1:
- run('adb shell am instrument -w "%s" %s' %
- (INSTRUMENTED_PACKAGE_RUNNER, ' '.join(sys.argv[1:])))
+ run('adb shell am instrument -w %s "%s"' %
+ (' '.join(sys.argv[1:]), INSTRUMENTED_PACKAGE_RUNNER))
return 0
# It would be nice if the activity manager accepted a list of packages, but