about summary refs log tree commit diff
path: root/src/bootstrap/test.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-06-16 11:12:15 -0600
committerMark Simulacrum <mark.simulacrum@gmail.com>2018-06-16 11:12:15 -0600
commitb436dca9e6d9bb47c9f63b7269c19392c60833d0 (patch)
treedaca6f08ae044ec8c785da8b435c954c0d70ee15 /src/bootstrap/test.rs
parent18bb86e5e11a70eb6ba9365499a9061c49581eee (diff)
downloadrust-b436dca9e6d9bb47c9f63b7269c19392c60833d0.tar.gz
rust-b436dca9e6d9bb47c9f63b7269c19392c60833d0.zip
Prevent Windows filesystem races in bootstrap tests
Diffstat (limited to 'src/bootstrap/test.rs')
-rw-r--r--src/bootstrap/test.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index a0b6222421d..ce6506b0a10 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1921,6 +1921,9 @@ impl Step for Bootstrap {
             cmd.arg("--no-fail-fast");
         }
         cmd.arg("--").args(&builder.config.cmd.test_args());
+        // rustbuild tests are racy on directory creation so just run them one at a time.
+        // Since there's not many this shouldn't be a problem.
+        cmd.arg("--test-threads=1");
         try_run(builder, &mut cmd);
     }