autotest.py: exit with error if requested step not found
This commit is contained in:
parent
b7395ee74b
commit
6530c3bd91
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user