From 9dc85c6f8f5c4c2105a04bc230d11aeb578d8ed5 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 3 Sep 2022 04:37:48 +0000 Subject: [PATCH] chore: tee coverage test stderr (backport #27551) (#27584) chore: tee coverage test stderr (#27551) * chore: tee coverage test stderr * chore: add --no-capture (cherry picked from commit 4071dc3cac3fecdb6acec54ba6bb807b15c80761) Co-authored-by: Yihau Chen --- scripts/coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/coverage.sh b/scripts/coverage.sh index d06bfcdb1a7cb6..059ddc2e20c654 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -79,7 +79,7 @@ NPROC=$(nproc) JOBS=$((JOBS>NPROC ? NPROC : JOBS)) RUST_LOG=solana=trace _ "$cargo" nightly test --jobs "$JOBS" --target-dir target/cov --no-run "${packages[@]}" -if RUST_LOG=solana=trace _ "$cargo" nightly test --jobs "$JOBS" --target-dir target/cov "${packages[@]}" 2> target/cov/coverage-stderr.log; then +if RUST_LOG=solana=trace _ "$cargo" nightly test --jobs "$JOBS" --target-dir target/cov "${packages[@]}" -- --nocapture 2> >(tee target/cov/coverage-stderr.log >&2); then test_status=0 else test_status=$?