projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a5e40
)
Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and...
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 17 Oct 2013 12:10:12 +0000
(12:10 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 17 Oct 2013 12:10:12 +0000
(12:10 +0000)
This is intended to check how many temporary files would be generated in automated builders.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192887
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/TestingConfig.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/TestingConfig.py
b/utils/lit/lit/TestingConfig.py
index d5415396906427eb68fcf7d0c57bf21276884ed0..748cf1f6b80e39f1ec795a1b7078c5aaefb2aace 100644
(file)
--- a/
utils/lit/lit/TestingConfig.py
+++ b/
utils/lit/lit/TestingConfig.py
@@
-35,6
+35,15
@@
class TestingConfig:
'TMP' : os.environ.get('TMP',''),
})
+ # The option to preserve TMP (and TEMP).
+ # This is intended to check how many temporary files would be generated
+ # in automated builders.
+ if os.environ.has_key('LIT_PRESERVES_TMP'):
+ environment.update({
+ 'TEMP' : os.environ.get('TEMP',''),
+ 'TMP' : os.environ.get('TMP',''),
+ })
+
# Set the default available features based on the LitConfig.
available_features = []
if litConfig.useValgrind: