summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
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.