[llvm] r192887 - Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and TEMP).
NAKAMURA Takumi
geek4civic at gmail.com
Thu Oct 17 05:10:12 PDT 2013
Author: chapuni
Date: Thu Oct 17 07:10:12 2013
New Revision: 192887
URL: http://llvm.org/viewvc/llvm-project?rev=192887&view=rev
Log:
Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and TEMP).
This is intended to check how many temporary files would be generated in automated builders.
Modified:
llvm/trunk/utils/lit/lit/TestingConfig.py
Modified: llvm/trunk/utils/lit/lit/TestingConfig.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestingConfig.py?rev=192887&r1=192886&r2=192887&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestingConfig.py (original)
+++ llvm/trunk/utils/lit/lit/TestingConfig.py Thu Oct 17 07:10:12 2013
@@ -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:
More information about the llvm-commits
mailing list