From 79f5bdc31153d3aa1dd6900dd68eb98540be145e Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Fri, 31 Aug 2018 09:59:07 -0600 Subject: [PATCH] Bug 1481449 - Require at least one test argument for 'mach test'; r=ahal --- testing/mach_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/mach_commands.py b/testing/mach_commands.py index f8d53ddfb25a..167468796e56 100644 --- a/testing/mach_commands.py +++ b/testing/mach_commands.py @@ -74,7 +74,7 @@ class TestConfig(object): 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 "