summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2009-11-25 02:17:20 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2009-11-25 02:17:20 (GMT)
commit5128cbccb9c1bd34365d3ed64e1f81ff57b9060c (patch)
treeb49475d667866ac0f28cdc1303c6e8949b7b0217 /QMTest/TestSCons.py
parent5ff8046981bd5c5b77e67851cd1734ce7fd754e0 (diff)
downloadSCons-5128cbccb9c1bd34365d3ed64e1f81ff57b9060c.zip
SCons-5128cbccb9c1bd34365d3ed64e1f81ff57b9060c.tar.gz
SCons-5128cbccb9c1bd34365d3ed64e1f81ff57b9060c.tar.bz2
Fix tests to ignore missing MSVC warnings.
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r--QMTest/TestSCons.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py
index d66bd93..0e0da59 100644
--- a/QMTest/TestSCons.py
+++ b/QMTest/TestSCons.py
@@ -350,15 +350,17 @@ class TestSCons(TestCommon):
Add the --warn=no-python-version option to SCONSFLAGS every
command so test scripts don't have to filter out Python version
deprecation warnings.
+ Same for --warn=no-visual-c-missing.
"""
save_sconsflags = os.environ.get('SCONSFLAGS')
+ if save_sconsflags:
+ sconsflags = [save_sconsflags]
+ else:
+ sconsflags = []
if self.ignore_python_version and deprecated_python_version():
- if save_sconsflags:
- sconsflags = [save_sconsflags]
- else:
- sconsflags = []
sconsflags = sconsflags + ['--warn=no-python-version']
- os.environ['SCONSFLAGS'] = string.join(sconsflags)
+ sconsflags = sconsflags + ['--warn=no-visual-c-missing']
+ os.environ['SCONSFLAGS'] = string.join(sconsflags)
try:
result = apply(TestCommon.run, (self,)+args, kw)
finally: