Skip to content

Commit b436dca

Browse files
Prevent Windows filesystem races in bootstrap tests
1 parent 18bb86e commit b436dca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/test.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1921,6 +1921,9 @@ impl Step for Bootstrap {
19211921
cmd.arg("--no-fail-fast");
19221922
}
19231923
cmd.arg("--").args(&builder.config.cmd.test_args());
1924+
// rustbuild tests are racy on directory creation so just run them one at a time.
1925+
// Since there's not many this shouldn't be a problem.
1926+
cmd.arg("--test-threads=1");
19241927
try_run(builder, &mut cmd);
19251928
}
19261929

0 commit comments

Comments
 (0)