mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
Lit: LIT_PRESERVES_TMP should be aware of TMPDIR, too.
TMPDIR is preferred in Unix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,13 +35,14 @@ class TestingConfig:
|
|||||||
'TMP' : os.environ.get('TMP',''),
|
'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
|
# 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'):
|
if os.environ.has_key('LIT_PRESERVES_TMP'):
|
||||||
environment.update({
|
environment.update({
|
||||||
'TEMP' : os.environ.get('TEMP',''),
|
'TEMP' : os.environ.get('TEMP',''),
|
||||||
'TMP' : os.environ.get('TMP',''),
|
'TMP' : os.environ.get('TMP',''),
|
||||||
|
'TMPDIR' : os.environ.get('TMPDIR',''),
|
||||||
})
|
})
|
||||||
|
|
||||||
# Set the default available features based on the LitConfig.
|
# Set the default available features based on the LitConfig.
|
||||||
|
Reference in New Issue
Block a user