Skip to content

Commit

Permalink
chore: tee coverage test stderr (backport #27551) (#27583)
Browse files Browse the repository at this point in the history
chore: tee coverage test stderr (#27551)

* chore: tee coverage test stderr

* chore: add --no-capture

(cherry picked from commit 4071dc3)

Co-authored-by: Yihau Chen <[email protected]>
  • Loading branch information
mergify[bot] and yihau authored Sep 3, 2022
1 parent fe81218 commit eeaab5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,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=$?
Expand Down

0 comments on commit eeaab5a

Please sign in to comment.