OSDN Git Service

Update service test runner to allow test args
authorEtan Cohen <etancohen@google.com>
Thu, 27 Oct 2016 17:33:56 +0000 (10:33 -0700)
committerEtan Cohen <etancohen@google.com>
Thu, 27 Oct 2016 17:34:47 +0000 (10:34 -0700)
Change order of arguments - runner must be last argument.

Test: executed test with arguments
Change-Id: I9e69246281bce9814300fadc7e5d97ecf1a2bad2

services/tests/runtests.py

index 35fec90..7980dc2 100755 (executable)
@@ -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