about summary refs log tree commit diff
path: root/src/tools/remote-test-client
diff options
context:
space:
mode:
authorTom Eccles <tom.eccles@codethink.co.uk>2020-05-28 16:27:56 +0100
committerTom Eccles <tom.eccles@codethink.co.uk>2020-06-02 14:00:18 +0100
commit1b7ec76c16b18b01acd07f987db488a642492049 (patch)
treeed4961c72107e0178397328e865d4c291d79d8e8 /src/tools/remote-test-client
parenteeaf497b2a6bc065874e3d3367b1f3023c5bb3d3 (diff)
downloadrust-1b7ec76c16b18b01acd07f987db488a642492049.tar.gz
rust-1b7ec76c16b18b01acd07f987db488a642492049.zip
tools/remote-test-{server,client}: support RUST_TEST_TMPDIR
Some tests (e.g. ui-fulldeps/create-dir-all-bare.rs) assume that
RUST_TEST_TMPDIR exists on the system running the test. Expand
remote-test-{server,client} such that a tmp directory is created on the
remote runner and this environment variable will point at it.
Diffstat (limited to 'src/tools/remote-test-client')
-rw-r--r--src/tools/remote-test-client/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/remote-test-client/src/main.rs b/src/tools/remote-test-client/src/main.rs
index 259477e9a1c..efc29163455 100644
--- a/src/tools/remote-test-client/src/main.rs
+++ b/src/tools/remote-test-client/src/main.rs
@@ -224,7 +224,7 @@ fn run(support_lib_count: usize, exe: String, all_args: Vec<String>) {
     // by the client.
     for (k, v) in env::vars() {
         match &k[..] {
-            "PATH" | "LD_LIBRARY_PATH" | "PWD" => continue,
+            "PATH" | "LD_LIBRARY_PATH" | "PWD" | "RUST_TEST_TMPDIR" => continue,
             _ => {}
         }
         t!(client.write_all(k.as_bytes()));