Skip to content

Commit 48e03cd

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 124f475 commit 48e03cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)