Skip to content

Commit 5153db1

Browse files
Explicitly create test tempdir
1 parent 41b39fc commit 5153db1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/test.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,10 @@ impl Step for Compiletest {
13271327
cmd.env("RUSTC_PROFILER_SUPPORT", "1");
13281328
}
13291329

1330-
cmd.env("RUST_TEST_TMPDIR", builder.out.join("tmp"));
1330+
let tmp = builder.out.join("tmp");
1331+
std::fs::create_dir_all(&tmp).unwrap();
1332+
cmd.env("RUST_TEST_TMPDIR", tmp);
1333+
13311334

13321335
cmd.arg("--adb-path").arg("adb");
13331336
cmd.arg("--adb-test-dir").arg(ADB_TEST_DIR);

0 commit comments

Comments
 (0)