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 64b3ff5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ci/common/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ set -e

log "Test Thrust and CUB..."

echo_and_run_timed "Test" ctest ${CTEST_FLAGS} | tee ctest_log
test_status=$?
(
# 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=$?
)

################################################################################
# COMPILE TIME INFO: Print the 20 longest running build steps (ninja only)
Expand Down

0 comments on commit 64b3ff5

Please sign in to comment.