Bug 1251037 - Fix ./mach marionette command line to work with options and tests. r=automatedtester, r=gps
authorSyd Polk <spolk@mozilla.com>
Mon, 29 Feb 2016 11:43:10 -0600
changeset 324368 9b6e06d5dab6be01b5a8645a568787f62748931b
parent 324366 ed985bbb417f646de65171084b917e4714de7fad (current diff)
parent 324367 0cf25ffb904e8505039e722ca88ac08d24594698 (diff)
child 324369 0def34737ac7eb9d8260a20212fa963a04dd9ea9
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester, gps
bugs1251037
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1251037 - Fix ./mach marionette command line to work with options and tests. r=automatedtester, r=gps MozReview-Commit-ID: 7kkj4Jo2D7z
--- 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/harness/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)