From 31dc3db9a4d36475f464c5543d9b7df4a2f36aa3 Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Thu, 27 Oct 2016 10:33:56 -0700 Subject: [PATCH] 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 --- services/tests/runtests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/tests/runtests.py b/services/tests/runtests.py index 35fec90f6ac5f..7980dc23e8e24 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