Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31dc3db9 authored by Etan Cohen's avatar Etan Cohen
Browse files

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
parent e266c375
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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