From 6530c3bd919eb7ad3c56e12b92a1584716d9fa24 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 20 Jun 2016 11:48:07 +1000 Subject: [PATCH] autotest.py: exit with error if requested step not found --- Tools/autotest/autotest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index 9122f190f6..605cab95b1 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -482,9 +482,15 @@ if len(args) > 0: # allow a wildcard list of steps matched = [] for a in args: + arg_matched = False for s in steps: if fnmatch.fnmatch(s.lower(), a.lower()): matched.append(s) + arg_matched = True + if not arg_matched: + print("No steps matched argument ({})".format(a)) + sys.exit(1) + steps = matched try: