Skip to content

Commit cfb6a7c

Browse files
authored
Fix failure from cargo not propagating because of pipe (#1432)
1 parent 968da78 commit cfb6a7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: .github/workflows/test-rustc-targets.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
- name: Test with `RUSTFLAGS=--cfg=rustc_target_test cargo test --lib`
3030
id: test
3131
continue-on-error: true # We want to open an issue if it fails
32-
run: cargo test --lib 2>&1 | tee test_output.txt
32+
run: |
33+
set -o pipefail
34+
cargo test --lib 2>&1 | tee test_output.txt
3335
env:
3436
RUSTFLAGS: --cfg=rustc_target_test
3537

0 commit comments

Comments
 (0)