From 763e7fb5b28f9f39f61baadefff5c47c0c5aeabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 10 May 2025 11:36:15 +0200 Subject: [PATCH] [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. --- llvm/utils/lit/lit/TestingConfig.py | 1 + 1 file changed, 1 insertion(+) 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"):