Skip to content

Commit 763e7fb

Browse files
committed
[lit] Add HOME to "safe" variables to pass through to tests
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 0b9c63d commit 763e7fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/lit/lit/TestingConfig.py

Lines changed: 1 addition & 0 deletions
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)