Skip to content

Commit

Permalink
CI: improve test_jenkins.sh error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-shalev committed Sep 11, 2024
1 parent a6d151b commit d8b8b97
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions contrib/test_jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1161,11 +1161,26 @@ then
set_ucx_common_test_env

if [[ "$PROTO_ENABLE" == "no" ]]; then
run_test_proto_disable
run_test_proto_disable || {
set +x
azure_log_error "Proto V1 test failed"
azure_log_error "To debug, rerun with: PROTO_ENABLE=no $0"
exit 1
}
elif [[ "$ASAN_CHECK" == "yes" ]]; then
run_asan_check
run_asan_check || {
set +x
azure_log_error "AddressSanitaizer check failed"
azure_log_error "To debug, rerun with: ASAN_CHECK=yes $0"
exit 1
}
elif [[ "$VALGRIND_CHECK" == "yes" ]]; then
run_valgrind_check
run_valgrind_check || {
set +x
azure_log_error "Valgrind test failed"
azure_log_error "To debug, rerun with: VALGRIND_CHECK=yes $0"
exit 1
}
else
run_tests
fi
Expand Down

0 comments on commit d8b8b97

Please sign in to comment.