diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:14:19 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-25 10:14:19 +0000 |
commit | 78a88e7233aece64a57741de617d6b80b6082be1 (patch) | |
tree | 505a7500e180ebf39e798d8b0b677171cc52a407 | |
parent | df0848982ffa87a2f7c1c8a7454489c95d8b6251 (diff) |
MultiTestRunner: Explicitly define child environment, the only variable we need
to import is the PATH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77061 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/test/TestRunner.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py index c767103377..246a22b438 100755 --- a/utils/test/TestRunner.py +++ b/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) |