Bug 1481449 - Require at least one test argument for 'mach test'; r=ahal
authorGeoff Brown <gbrown@mozilla.com>
Fri, 31 Aug 2018 09:59:07 -0600
changeset 492088 59eabdc7dc1a1694edb17fd32815512e84b0794d
parent 492087 8f1ffafbdb88d9ea8c1a7cfd7dfb7bc219322d80
child 492089 c47e4fa9dba85dda068c71555b7e8c7cf7a6400b
push id1815
push userffxbld-merge
push dateMon, 15 Oct 2018 10:40:45 +0000
treeherdermozilla-release@18d4c09e9378 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1481449
milestone63.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 1481449 - Require at least one test argument for 'mach test'; r=ahal
testing/mach_commands.py
--- a/testing/mach_commands.py
+++ b/testing/mach_commands.py
@@ -69,17 +69,17 @@ class TestConfig(object):
             ('test.format', 'string', format_desc, 'mach', {'choices': format_choices}),
             ('test.level', 'string', level_desc, 'info', {'choices': level_choices}),
         ]
 
 
 def get_test_parser():
     from mozlog.commandline import add_logging_group
     parser = argparse.ArgumentParser()
-    parser.add_argument('what', default=None, nargs='*', help=TEST_HELP)
+    parser.add_argument('what', default=None, nargs='+', help=TEST_HELP)
     parser.add_argument('extra_args', default=None, nargs=argparse.REMAINDER,
                         help="Extra arguments to pass to the underlying test command(s). "
                              "If an underlying command doesn't recognize the argument, it "
                              "will fail.")
     add_logging_group(parser)
     return parser