about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-07 10:36:08 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-07 10:36:08 +0000
commit717fdb58176096d5cd01d9d9ebaf01d756f2234b (patch)
tree58682d9bfc3d886cc73c5440e125cd5a4ac3d762 /src/tools/compiletest
parent8aff39130ff476f0949cd259478737762cc0bd30 (diff)
downloadrust-717fdb58176096d5cd01d9d9ebaf01d756f2234b.tar.gz
rust-717fdb58176096d5cd01d9d9ebaf01d756f2234b.zip
Make -Zsimulate-remapped-rust-src-base reproducible on CI
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index e07b71a7c47..1542b1c17ad 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -3542,6 +3542,8 @@ impl<'test> TestCx<'test> {
             option_env!("CFG_VIRTUAL_RUST_SOURCE_BASE_DIR").map(PathBuf::from),
             // Virtual `/rustc/$sha` coming from download-rustc:
             std::env::var_os("FAKE_DOWNLOAD_RUSTC_PREFIX").map(PathBuf::from),
+            // Tests using -Zsimulate-remapped-rust-src-base should use this fake path
+            Some("/rustc/FAKE_PREFIX".into()),
         ];
         for base_dir in source_bases {
             if let Some(base_dir) = base_dir {