mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2025-12-13 18:56:02 +08:00
mavsdk_tests: fix PEP8 issues
This commit is contained in:
@@ -220,7 +220,7 @@ def main():
|
|||||||
print("Test iterations: %d" % (x + 1))
|
print("Test iterations: %d" % (x + 1))
|
||||||
for group in test_matrix:
|
for group in test_matrix:
|
||||||
print("Running test group for '{}' with filter '{}'"
|
print("Running test group for '{}' with filter '{}'"
|
||||||
.format(group['model'], group['test_filter']))
|
.format(group['model'], group['test_filter']))
|
||||||
|
|
||||||
tests = determine_tests(os.getcwd(), group['test_filter'])
|
tests = determine_tests(os.getcwd(), group['test_filter'])
|
||||||
|
|
||||||
@@ -241,7 +241,8 @@ def main():
|
|||||||
os.getcwd(), args.log_dir)
|
os.getcwd(), args.log_dir)
|
||||||
gzclient_runner.start(group)
|
gzclient_runner.start(group)
|
||||||
|
|
||||||
test_runner = TestRunner(os.getcwd(), args.log_dir, group, test)
|
test_runner = TestRunner(
|
||||||
|
os.getcwd(), args.log_dir, group, test)
|
||||||
test_runner.start(group)
|
test_runner.start(group)
|
||||||
|
|
||||||
returncode = test_runner.wait(group['timeout_min'])
|
returncode = test_runner.wait(group['timeout_min'])
|
||||||
@@ -259,9 +260,10 @@ def main():
|
|||||||
|
|
||||||
# Test run results
|
# Test run results
|
||||||
print("Test '{}': {}".
|
print("Test '{}': {}".
|
||||||
format(test, "Success" if was_success else "Fail"))
|
format(test, "Success" if was_success else "Fail"))
|
||||||
|
|
||||||
# Flag it as group test failure, but finish the rest of the test targets
|
# Flag it as group test failure, but finish the rest of the
|
||||||
|
# test targets.
|
||||||
if not was_success:
|
if not was_success:
|
||||||
overall_success = False
|
overall_success = False
|
||||||
|
|
||||||
@@ -278,5 +280,6 @@ def main():
|
|||||||
|
|
||||||
sys.exit(0 if overall_success else 1)
|
sys.exit(0 if overall_success else 1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user