Prevent Windows filesystem races in bootstrap tests

This commit is contained in:
Mark Simulacrum 2018-06-16 11:12:15 -06:00
parent 18bb86e5e1
commit b436dca9e6

View File

@ -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);
}