mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mavsdk_tests: improve naming of argument
We abort when we already failed so this makes more sense.
This commit is contained in:
parent
41b2362dcf
commit
70eb444f17
@ -171,7 +171,7 @@ def main():
|
||||
help="How fast to run the simulation")
|
||||
parser.add_argument("--iterations", type=int, default=1,
|
||||
help="How often to run all tests")
|
||||
parser.add_argument("--fail-early", action='store_true',
|
||||
parser.add_argument("--abort-early", action='store_true',
|
||||
help="Abort on first unsuccessful test")
|
||||
parser.add_argument("--gui", default=False, action='store_true',
|
||||
help="Display gzclient with simulation")
|
||||
@ -259,7 +259,7 @@ def run(args, config):
|
||||
if not was_success:
|
||||
overall_success = False
|
||||
|
||||
if args.iterations > 1 and not was_success and args.fail_early:
|
||||
if args.iterations > 1 and not was_success and args.abort_early:
|
||||
print("Aborting with a failure in test run {}/{}".
|
||||
format(iteration + 1, args.iterations))
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user