[llvm] 635c648 - [lit] Add HOME to "safe" variables to pass through to tests (#139367)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 10 03:49:24 PDT 2025
Author: Michał Górny
Date: 2025-05-10T12:49:20+02:00
New Revision: 635c648ecf0fbb7fd3fd517de2cf095522a17a6e
URL: https://github.com/llvm/llvm-project/commit/635c648ecf0fbb7fd3fd517de2cf095522a17a6e
DIFF: https://github.com/llvm/llvm-project/commit/635c648ecf0fbb7fd3fd517de2cf095522a17a6e.diff
LOG: [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.
Added:
Modified:
llvm/utils/lit/lit/TestingConfig.py
Removed:
################################################################################
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index b0d8e7149e553..c063851b89526 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -66,6 +66,7 @@ def fromdefaults(litConfig):
"DFLTCC",
"QEMU_LD_PREFIX",
"QEMU_CPU",
+ "HOME",
]
if sys.platform.startswith("aix"):
More information about the llvm-commits
mailing list