Browse Source

mavsdk_tests: improve naming of argument

We abort when we already failed so this makes more sense.
sbg
Julian Oes 5 years ago committed by Nuno Marques
parent
commit
70eb444f17
  1. 4
      test/mavsdk_tests/mavsdk_test_runner.py

4
test/mavsdk_tests/mavsdk_test_runner.py

@ -171,7 +171,7 @@ def main(): @@ -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): @@ -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…
Cancel
Save