Minor code cleanup, including restoring saved SCONSFLAGS correctly.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Jan 2010 19:17:03 +0000 (19:17 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 14 Jan 2010 19:17:03 +0000 (19:17 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4621 fdb21ef1-2011-0410-befe-b5e4ea1792b1

QMTest/TestSConsMSVS.py

index 5fea14ae929ce4ed11e046f64543999f84fbb90b..0f6fc6f3821a0e14cc3d8c4bdb149152e4b8df54 100644 (file)
@@ -658,9 +658,8 @@ print "self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions())
         os.environ['SCONSFLAGS'] = string.join(sconsflags)
         try:
             result = apply(TestSCons.run, (self,)+args, kw)
-            pass
         finally:
-            sconsflags = save_sconsflags
+            os.environ['SCONSFLAGS'] = save_sconsflags or ''
         return result
 
 # Local Variables: