summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-04-19 11:54:04 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-04-22 02:16:35 -0400
commit09e98859be5304176d5c66b4a71d61bf381bcae5 (patch)
tree46b19b4bcbc5d82d1fe882a7ebfc9ee2b952a65a /testsuite/driver/testglobals.py
parentdd5fecb0e2990b192d92f4dfd7519ecb33164fad (diff)
downloadhaskell-09e98859be5304176d5c66b4a71d61bf381bcae5.tar.gz
testsuite: Ensure that GHC doesn't pick up environment files
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/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index b85a14e17a..8a68ffd33e 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -237,8 +237,7 @@ def getConfig():
return config
import os
-# Hold our modified GHC testrunning environment so we don't poison the current
-# python's environment.
+# This is the environment in which we run test subprocesses.
global ghc_env
ghc_env = os.environ.copy()