summaryrefslogtreecommitdiffstats
path: root/clang/utils/test/TestRunner.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-25 10:14:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-25 10:14:19 +0000
commit3ab3b5e17a6880b582f86e65ccab352de2d5a362 (patch)
treec606e3c2f58569c9ba9b2edb2f663cc9f79073f7 /clang/utils/test/TestRunner.py
parent691a4784db7a1319571e84fc4cfc4cd63a3b82dd (diff)
downloadbcm5719-llvm-3ab3b5e17a6880b582f86e65ccab352de2d5a362.tar.gz
bcm5719-llvm-3ab3b5e17a6880b582f86e65ccab352de2d5a362.zip
MultiTestRunner: Explicitly define child environment, the only variable we need
to import is the PATH. llvm-svn: 77061
Diffstat (limited to 'clang/utils/test/TestRunner.py')
-rwxr-xr-xclang/utils/test/TestRunner.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/utils/test/TestRunner.py b/clang/utils/test/TestRunner.py
index c7671033776..246a22b4389 100755
--- a/clang/utils/test/TestRunner.py
+++ b/clang/utils/test/TestRunner.py
@@ -23,10 +23,8 @@ import signal
import subprocess
import sys
-# Increase determinism for things that use the terminal width.
-#
-# FIXME: Find a better place for this hack.
-os.environ['COLUMNS'] = '0'
+# Increase determinism by explicitly choosing the environment.
+kChildEnv = { 'PATH' : os.environ.get('PATH','') }
kSystemName = platform.system()
@@ -163,7 +161,8 @@ def runOneTest(FILENAME, SUBST, OUTPUT, TESTNAME, CLANG, CLANGCC,
cwd=os.path.dirname(FILENAME),
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
+ stderr=subprocess.PIPE,
+ env=kChildEnv)
out,err = p.communicate()
outputFile.write(out)
outputFile.write(err)
OpenPOWER on IntegriCloud