diff options
Diffstat (limited to 'clang/test/Unit/lit.cfg.py')
-rw-r--r-- | clang/test/Unit/lit.cfg.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/test/Unit/lit.cfg.py b/clang/test/Unit/lit.cfg.py index 475069e..37e91d0 100644 --- a/clang/test/Unit/lit.cfg.py +++ b/clang/test/Unit/lit.cfg.py @@ -25,13 +25,9 @@ config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, "Tests") # Propagate the temp directory. Windows requires this because it uses \Windows\ # if none of these are present. -if "TMP" in os.environ: - config.environment["TMP"] = os.environ["TMP"] -if "TEMP" in os.environ: - config.environment["TEMP"] = os.environ["TEMP"] - -if "HOME" in os.environ: - config.environment["HOME"] = os.environ["HOME"] +for v in ["TMP", "TEMP", "HOME", "SystemDrive"]: + if v in os.environ: + config.environment[v] = os.environ[v] # Propagate sanitizer options. for var in [ |