summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
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
commit1c19a0f4a85e540b64e210fd8143a9f784f17b85 (patch)
treee8a84ded89980186bd1ec7228447af754cc95174 /llvm/utils/lit
parentd687560d51c4fc1c77ea40c1c504b52f3cda0c95 (diff)
downloadbcm5719-llvm-1c19a0f4a85e540b64e210fd8143a9f784f17b85.tar.gz
bcm5719-llvm-1c19a0f4a85e540b64e210fd8143a9f784f17b85.zip
Lit: LIT_PRESERVES_TMP should be aware of TMPDIR, too.
TMPDIR is preferred in Unix. llvm-svn: 192891
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/TestingConfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index 748cf1f6b80..4a34b77e175 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/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.
OpenPOWER on IntegriCloud