Another test fix for the MSVS tests.
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 25 Nov 2009 03:51:06 +0000 (03:51 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 25 Nov 2009 03:51:06 +0000 (03:51 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4482 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc.py

index bfb54f6c858d5914832452ca72d0b65b6d9752b7..4673d0fe69a49c9696c3cfeef7118ff2ea7bf060 100644 (file)
@@ -237,6 +237,10 @@ def get_installed_vcs():
             debug('did not find VC %s: caught exception %s' % (ver, str(e)))
     return installed_versions
 
+def reset_installed_vcs():
+    """Make it try again to find VC.  This is just for the tests."""
+    __INSTALLED_VCS_RUN = None
+
 def script_env(script, args=None):
     stdout = common.get_output(script, args)
     # Stupid batch files do not set return code: we take a look at the