diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-03 10:40:19 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-03 12:45:07 -0700 |
commit | d2508e3a447b0b3331cde5003fb8fdd4aaf7c856 (patch) | |
tree | 8a945e4aeee52e5039013e9beec0570fc0afcf10 | |
parent | 274b09eee1cdac51ceea9238d2e584babae48720 (diff) | |
download | nix-d2508e3a447b0b3331cde5003fb8fdd4aaf7c856.zip |
Use single threads for testing
I actually couldn't find a reference to CARGO_TEST_THREADS in the
current cargo codebase, but RUST_TEST_THREADS is definitely correct.
This should reduce some spurious failures on some platforms.
-rw-r--r-- | .travis.yml | 2 | ||||
-rw-r--r-- | Cross.toml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 3c63f12a..466c9d21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ sudo: required env: global: - CRATE_NAME=nix - - CARGO_TEST_THREADS=1 + - RUST_TEST_THREADS=1 matrix: # These are all the build jobs. Adjust as necessary. Comment out what you diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 00000000..7c536dc5 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,2 @@ +[build.env] +passthrough = ["RUST_TEST_THREADS"] |