about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-05 18:40:54 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-05 18:40:54 -0400
commit5153db136e8419beb217340500a97db553ddabbe (patch)
treed2b786dfa03e1e91b5da7fd6081338650426c49d
parent41b39fce98fc141fef067cc22c1e9e9dc7b88b29 (diff)
downloadrust-5153db136e8419beb217340500a97db553ddabbe.tar.gz
rust-5153db136e8419beb217340500a97db553ddabbe.zip
Explicitly create test tempdir
-rw-r--r--src/bootstrap/test.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 97b28ed9e96..00d87f3841c 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -1327,7 +1327,10 @@ impl Step for Compiletest {
             cmd.env("RUSTC_PROFILER_SUPPORT", "1");
         }
 
-        cmd.env("RUST_TEST_TMPDIR", builder.out.join("tmp"));
+        let tmp = builder.out.join("tmp");
+        std::fs::create_dir_all(&tmp).unwrap();
+        cmd.env("RUST_TEST_TMPDIR", tmp);
+
 
         cmd.arg("--adb-path").arg("adb");
         cmd.arg("--adb-test-dir").arg(ADB_TEST_DIR);