I have tests which share a common resource and can't be executed concurrently. These tests fail with cargo test
, but work with RUST_TEST_THREADS=1 cargo test
.
I can modify the tests to wait on a global mutex, but I don't want to clutter them if there is any simpler way to force cargo
set this environment variable for me.