From 2f30f111b0419546e6565fe096530ae3a32c12f3 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Thu, 10 Dec 2009 16:27:03 +0000 Subject: Provide an environment variable that can be used to override setting --warn=no-visual-c-missing when trying to run the new timing-script infrastructure against older versions of SCons that don't have that warning. --- QMTest/TestSCons.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 9fd38c8..f73de04 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -367,7 +367,13 @@ class TestSCons(TestCommon): sconsflags = [] if self.ignore_python_version and deprecated_python_version(): sconsflags = sconsflags + ['--warn=no-python-version'] - sconsflags = sconsflags + ['--warn=no-visual-c-missing'] + # Provide a way to suppress or provide alternate flags for + # TestSCons purposes by setting TESTSCONS_SCONSFLAGS. + # (The intended use case is to set it to null when running + # timing tests of earlier versions of SCons which don't + # support the --warn=no-visual-c-missing warning.) + sconsflags = sconsflags + [os.environ.get('TESTSCONS_SCONSFLAGS', + '--warn=no-visual-c-missing')] os.environ['SCONSFLAGS'] = string.join(sconsflags) try: result = apply(TestCommon.run, (self,)+args, kw) -- cgit v0.12