summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-10-17 13:11:13 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-10-17 13:11:13 +0000
commit651ffc703e4ae78c4416e6c360b1182bbd30849a (patch)
tree08c430af326ccb64d4bcd01e2564bd3e72eb55db /utils
parent3d5694dca9ba2b05a4be6202509567b4a3426295 (diff)
downloadllvm-651ffc703e4ae78c4416e6c360b1182bbd30849a.tar.gz
llvm-651ffc703e4ae78c4416e6c360b1182bbd30849a.tar.bz2
llvm-651ffc703e4ae78c4416e6c360b1182bbd30849a.tar.xz
Lit: LIT_PRESERVES_TMP should be aware of TMPDIR, too.
TMPDIR is preferred in Unix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/lit/lit/TestingConfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/lit/TestingConfig.py b/utils/lit/lit/TestingConfig.py
index 748cf1f6b8..4a34b77e17 100644
--- a/utils/lit/lit/TestingConfig.py
+++ b/utils/lit/lit/TestingConfig.py
@@ -35,13 +35,14 @@ class TestingConfig:
'TMP' : os.environ.get('TMP',''),
})
- # The option to preserve TMP (and TEMP).
+ # The option to preserve TEMP, TMP, and TMPDIR.
# This is intended to check how many temporary files would be generated
- # in automated builders.
+ # (and be not cleaned up) in automated builders.
if os.environ.has_key('LIT_PRESERVES_TMP'):
environment.update({
'TEMP' : os.environ.get('TEMP',''),
'TMP' : os.environ.get('TMP',''),
+ 'TMPDIR' : os.environ.get('TMPDIR',''),
})
# Set the default available features based on the LitConfig.