autotest.py: exit with error if requested step not found

This commit is contained in:
Peter Barker 2016-06-20 11:48:07 +10:00
parent b7395ee74b
commit 6530c3bd91

View File

@ -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: