Un-unset TERM and DISPLAY (#26326)

For interactive `spack build-env`'s this is undesired behavior
This commit is contained in:
Harmen Stoppels
2021-09-29 16:28:32 +02:00
committed by GitHub
parent 11278dd55a
commit 9d39a1bf42

View File

@@ -173,10 +173,6 @@ def clean_environment():
# Affects GNU make, can e.g. indirectly inhibit enabling parallel build
env.unset('MAKEFLAGS')
# Could make testsuites attempt to color their output
env.unset('TERM')
# Tests of GUI widget libraries might try to connect to an X server
env.unset('DISPLAY')
# Avoid that libraries of build dependencies get hijacked.
env.unset('LD_PRELOAD')