summaryrefslogtreecommitdiff
path: root/testsuite/driver/runtests.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-04-19 11:54:04 -0400
committerBen Gamari <ben@smart-cactus.org>2022-04-20 13:32:10 -0400
commit464480e6fa594f3c4447e836ce389a4d204eff51 (patch)
treef894cf9e0c4beafb776cb29829a99cc752ed65ff /testsuite/driver/runtests.py
parentd8392f6a714b5646d43ed54eee0d028f714da717 (diff)
downloadhaskell-wip/T21365.tar.gz
testsuite: Ensure that GHC doesn't pick up environment fileswip/T21365
Here we set GHC_ENVIRONMENT="-" to ensure that GHC invocations of tests don't pick up a user's local package environment. Fixes #21365. Metric Decrease: T10421 T12234 T12425 T13035 T16875 T9198
Diffstat (limited to 'testsuite/driver/runtests.py')
-rw-r--r--testsuite/driver/runtests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index 0d458924d0..5510adfdef 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -42,6 +42,9 @@ import cpu_features
os.environ['TERM'] = 'vt100'
ghc_env['TERM'] = 'vt100'
+# Ensure that GHC doesn't go looking for environment files. See #21365.
+ghc_env['GHC_ENVIRONMENT'] = "-"
+
global config
config = getConfig() # get it from testglobals
config.validate()