]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/test.rs
Auto merge of #51367 - oli-obk:silence!_I_test_you, r=Mark-Simulacrum
[rust.git] / src / bootstrap / test.rs
index 25a8116ff2a8739ba1049479df24749ab43f101e..d2fd798723dabbf0c6abf809eb50f56b32c11c18 100644 (file)
@@ -1921,6 +1921,9 @@ fn run(self, builder: &Builder) {
             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);
     }