Skip to content

Commit 164e9b4

Browse files
committed
Use single threads for testing
1 parent f008cc6 commit 164e9b4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cross.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build.env]
2+
passthrough = ["RUST_TEST_THREADS"]

ci/script.sh

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ main() {
88
export RUSTFLAGS=--cfg=travis
99
fi
1010

11+
# Use only a single thread for testing as we get spurious failures otherwise
12+
export RUST_TEST_THREADS=1
13+
1114
# Build debug and release targets
1215
cross build --target $TARGET
1316
cross build --target $TARGET --release

0 commit comments

Comments
 (0)