File tree Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Expand file tree Collapse file tree 3 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ functions:
127
127
export SSL="${SSL}"
128
128
. .evergreen/generate-uri.sh
129
129
130
- ASYNC_RUNTIME=${ASYNC_RUNTIME} .evergreen/run-tests.sh
130
+ SINGLE_THREAD=${SINGLE_THREAD} ASYNC_RUNTIME=${ASYNC_RUNTIME} .evergreen/run-tests.sh
131
131
132
132
" run atlas tests " :
133
133
- command : shell.exec
@@ -428,6 +428,8 @@ axes:
428
428
- id : macos-10.14
429
429
display_name : " MacOS 10.14"
430
430
run_on : macos-1014
431
+ variables :
432
+ SINGLE_THREAD : true
431
433
432
434
buildvariants :
433
435
-
Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
5
5
. ~ /.cargo/env
6
- RUST_BACKTRACE=1 cargo test --no-default-features --features async-std-runtime
7
- RUST_BACKTRACE=1 cargo test sync --no-default-features --features sync
8
- RUST_BACKTRACE=1 cargo test --doc sync --no-default-features --features sync
6
+
7
+ if [ " $SINGLE_THREAD " = true ]; then
8
+ OPTIONS=" -- --test-threads=1"
9
+ fi
10
+
11
+ echo " cargo test options: ${OPTIONS} "
12
+
13
+ RUST_BACKTRACE=1 cargo test --no-default-features --features async-std-runtime $OPTIONS
14
+ RUST_BACKTRACE=1 cargo test sync --no-default-features --features sync $OPTIONS
15
+ RUST_BACKTRACE=1 cargo test --doc sync --no-default-features --features sync $OPTIONS
Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
5
5
. ~ /.cargo/env
6
- RUST_BACKTRACE=1 cargo test
6
+
7
+ if [ " $SINGLE_THREAD " = true ]; then
8
+ OPTIONS=" -- --test-threads=1"
9
+ fi
10
+
11
+ echo " cargo test options: ${OPTIONS} "
12
+
13
+ RUST_BACKTRACE=1 cargo test $OPTIONS
You can’t perform that action at this time.
0 commit comments