Bug 1251037 - Fix ./mach marionette command line to work with options and tests. r?automatedtester, r?gps draft
authorSyd Polk <spolk@mozilla.com>
Thu, 25 Feb 2016 13:13:29 -0600
changeset 334661 bf774b81f431b8637f29ee2e88f3ab953bb19714
parent 330467 576a6dcde5b68c2ea45324ed5ce1dabb7d833d09
child 514961 a674b1d4d319ce1852ccaa9625fcbd3a085e62b4
push id11600
push userspolk@mozilla.com
push dateThu, 25 Feb 2016 19:14:17 +0000
reviewersautomatedtester, gps
bugs1251037
milestone47.0a1
Bug 1251037 - Fix ./mach marionette command line to work with options and tests. r?automatedtester, r?gps MozReview-Commit-ID: 2fUM57dHSY8
testing/marionette/mach_commands.py
--- a/testing/marionette/mach_commands.py
+++ b/testing/marionette/mach_commands.py
@@ -39,22 +39,22 @@ def run_marionette(tests, b2g_path=None,
     from marionette.runtests import (
         MarionetteTestRunner,
         BaseMarionetteArguments,
         MarionetteHarness
     )
 
     parser = BaseMarionetteArguments()
     commandline.add_logging_group(parser)
-    args = parser.parse_args()
 
     if not tests:
         tests = [os.path.join(topsrcdir,
                  'testing/marionette/client/marionette/tests/unit-tests.ini')]
-    args.tests = tests
+
+    args = parser.parse_args(args=tests)
 
     if b2g_path:
         args.homedir = b2g_path
         if emulator:
             args.emulator = emulator
     else:
         args.binary = binary
         path, exe = os.path.split(args.binary)