Skip to content

Commit 635c648

Browse files
authored
[lit] Add HOME to "safe" variables to pass through to tests (#139367)
Incldue `HOME` among the variables that are passed through to tests when environment is cleaned. This is necessary for Gentoo build environments, where individual package builds are given temporary home directories that are exposed via `HOME` variable. By stripping the variable, `lit` made these tests attempt to access user's home directory, resulting in permission errors.
1 parent f2e62cf commit 635c648

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/lit/lit/TestingConfig.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def fromdefaults(litConfig):
6666
"DFLTCC",
6767
"QEMU_LD_PREFIX",
6868
"QEMU_CPU",
69+
"HOME",
6970
]
7071

7172
if sys.platform.startswith("aix"):

0 commit comments

Comments
 (0)