diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-04-28 13:11:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-28 13:11:29 (GMT) |
commit | 44c7b81e1a47ff5d4439740b1e929ea723ee1f18 (patch) | |
tree | 04de3d55bc21b43ef06380a6ce74224b227a2ebb /testing | |
parent | d3721490e0835944b3575301b77f4010ed0323fa (diff) | |
parent | c1ae73ae94b8437aed7e4ffd10b50620580d305f (diff) | |
download | SCons-44c7b81e1a47ff5d4439740b1e929ea723ee1f18.zip SCons-44c7b81e1a47ff5d4439740b1e929ea723ee1f18.tar.gz SCons-44c7b81e1a47ff5d4439740b1e929ea723ee1f18.tar.bz2 |
Merge pull request #3360 from mwichmann/isnot
Some more lint-derived cleanups
Diffstat (limited to 'testing')
-rw-r--r-- | testing/framework/TestSConsMSVS.py | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/testing/framework/TestSConsMSVS.py b/testing/framework/TestSConsMSVS.py index 4c99bd4..4c853dc 100644 --- a/testing/framework/TestSConsMSVS.py +++ b/testing/framework/TestSConsMSVS.py @@ -38,18 +38,18 @@ expected_dspfile_6_0 = '''\ CFG=Test - Win32 Release !MESSAGE This is not a valid makefile. To build this project using NMAKE, !MESSAGE use the Export Makefile command and run -!MESSAGE +!MESSAGE !MESSAGE NMAKE /f "Test.mak". -!MESSAGE +!MESSAGE !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE +!MESSAGE !MESSAGE NMAKE /f "Test.mak" CFG="Test - Win32 Release" -!MESSAGE +!MESSAGE !MESSAGE Possible choices for configuration are: -!MESSAGE +!MESSAGE !MESSAGE "Test - Win32 Release" (based on "Win32 (x86) External Target") -!MESSAGE +!MESSAGE # Begin Project # PROP AllowPerConfigDependencies 0 @@ -85,7 +85,7 @@ CFG=Test - Win32 Release !IF "$(CFG)" == "Test - Win32 Release" -!ENDIF +!ENDIF # Begin Group "Header Files" @@ -1150,7 +1150,7 @@ import SCons.Tool.MSCommon print("self.scons_version =%%s"%%repr(SCons.__%s__)) print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions())) """ % 'version' - + self.run(arguments = '-n -q -Q -f -', stdin = input) exec(self.stdout()) @@ -1233,11 +1233,11 @@ print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions())) finally: os.environ['SCONSFLAGS'] = save_sconsflags or '' return result - + def get_vs_host_arch(self): """ Get an MSVS, SDK , and/or MSVS acceptable platform arch """ - + # Dict to 'canonalize' the arch _ARCH_TO_CANONICAL = { "x86": "x86", @@ -1255,21 +1255,19 @@ print("self._msvs_versions =%%s"%%str(SCons.Tool.MSCommon.query_versions())) # PROCESSOR_ARCHITECTURE. if not host_platform: host_platform = os.environ.get('PROCESSOR_ARCHITECTURE', '') - - + try: host = _ARCH_TO_CANONICAL[host_platform] except KeyError as e: # Default to x86 for all other platforms host = 'x86' - - + return host def validate_msvs_file(self, file): try: x = ElementTree.parse(file) - except: + except: print("--------------------------------------------------------------") print("--------------------------------------------------------------") print(traceback.format_exc()) |