Skip to content
Snippets Groups Projects
Commit 02029882 authored by Andreas Daniel Antener's avatar Andreas Daniel Antener Committed by Lorenz Meier
Browse files

SITL CI: gracefully fail tests early (#5405)

parent 15e50b26
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,12 @@ echo -e "ROS_LOG_DIR\t\t: $ROS_LOG_DIR"
echo -e "PX4_LOG_DIR\t\t: $PX4_LOG_DIR"
echo -e "TEST_RESULT_TARGET_DIR\t: $TEST_RESULT_TARGET_DIR"
# Exit on first error as we cannot afford to wait forever
set -e
# don't exit on error anymore (because single tests or exports might fail)
# however, stop executing tests after the first failure
set +e
echo "=====> run tests"
rostest px4 mavros_posix_tests_iris.launch
rostest px4 mavros_posix_tests_standard_vtol.launch
test $? -eq 0 && rostest px4 mavros_posix_tests_iris.launch
test $? -eq 0 && rostest px4 mavros_posix_tests_standard_vtol.launch
TEST_RESULT=$?
echo "<====="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment