Skip to content

Commit

Permalink
iox-##692 Fix bug in build script
Browse files Browse the repository at this point in the history
Signed-off-by: Ibrahim Kuru <ibrahim.kuru@apex.ai>
  • Loading branch information
ibrhmkuru committed Jan 12, 2023
1 parent 33310a3 commit f40ff85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Run Thread Sanitizer
run: ./tools/ci/build-test-ubuntu-with-sanitizers.sh clang tsan

build-test-macos-with-sanitizers:
build-test-macos-with-address-sanitizer:
# prevent stuck jobs consuming runners for 3 hours
timeout-minutes: 180
runs-on: macos-12
Expand Down
13 changes: 8 additions & 5 deletions tools/run_tests.sh
Expand Up @@ -121,7 +121,14 @@ fi
set_sanitizer_options

make_c() {
make $1 || test_failed=1; test "$CONTINUE_ON_ERROR" != "true" && exit 1
make $1 || test_failed=1
if [ "$test_failed" == "1" ]; then
echo "------->>>>> Test: $1 failed!!!!"
if [ "$CONTINUE_ON_ERROR" != "true" ]; then
echo "Exiting immediately (CONTINUE_ON_ERROR=false)"
exit 1
fi
fi
}

execute_test() {
Expand Down Expand Up @@ -157,10 +164,6 @@ execute_test() {
;;
esac

if [ "$test_failed" != "0" ]; then
echo "Tests Failed!"
fi

return $((test_failed))
}

Expand Down

0 comments on commit f40ff85

Please sign in to comment.