autotest: fail if no steps supplied and not autotest server
This commit is contained in:
parent
65b5e0455b
commit
722a95f825
@ -1214,6 +1214,10 @@ if __name__ == "__main__":
|
|||||||
newargs.append(arg)
|
newargs.append(arg)
|
||||||
args = newargs
|
args = newargs
|
||||||
|
|
||||||
|
if len(args) == 0 and not opts.autotest_server:
|
||||||
|
print("Steps must be supplied; try --list and/or --list-subtests or --help")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
# allow a wildcard list of steps
|
# allow a wildcard list of steps
|
||||||
matched = []
|
matched = []
|
||||||
@ -1232,12 +1236,6 @@ if __name__ == "__main__":
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
matched.extend(matches)
|
matched.extend(matches)
|
||||||
steps = matched
|
steps = matched
|
||||||
elif opts.autotest_server:
|
|
||||||
# we will be changing this script to give a help message if
|
|
||||||
# --autotest-server isn't given, instead of assuming we want
|
|
||||||
# to do everything that happens on autotest.ardupilot.org,
|
|
||||||
# which includes some significant state-changing actions.
|
|
||||||
print("AutoTest-Server Mode")
|
|
||||||
|
|
||||||
# skip steps according to --skip option:
|
# skip steps according to --skip option:
|
||||||
steps_to_run = [s for s in steps if should_run_step(s)]
|
steps_to_run = [s for s in steps if should_run_step(s)]
|
||||||
|
Loading…
Reference in New Issue
Block a user