Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Prevent tee from interfering with the ctest exit status check.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Jan 17, 2022
1 parent 63a9b70 commit ca681d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/common/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,12 @@ set -e

log "Test Thrust and CUB..."

echo_and_run_timed "Test" ctest ${CTEST_FLAGS} | tee ctest_log
(
# Make sure test_status captures ctest, not tee:
# https://stackoverflow.com/a/999259/11130318
set -o pipefail
echo_and_run_timed "Test" ctest ${CTEST_FLAGS} | tee ctest_log
)
test_status=$?

################################################################################
Expand Down

0 comments on commit ca681d3

Please sign in to comment.