Skip to content

Commit

Permalink
Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preser…
Browse files Browse the repository at this point in the history
…ve TMP (and TEMP).

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
  • Loading branch information
chapuni committed Oct 17, 2013
1 parent f9a5e40 commit 9f64a56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/lit/lit/TestingConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def fromdefaults(litConfig):
'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:
Expand Down

0 comments on commit 9f64a56

Please sign in to comment.