forked from OSchip/llvm-project
Lit: LIT_PRESERVES_TMP should be aware of TMPDIR, too.
TMPDIR is preferred in Unix. llvm-svn: 192891
This commit is contained in:
parent
d687560d51
commit
1c19a0f4a8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue