diff options
author | William Deegan <bill@baddogconsulting.com> | 2016-11-27 23:25:05 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2016-11-27 23:25:05 (GMT) |
commit | 30247efa139711be7f2d7342c01b1c817985df0c (patch) | |
tree | b4360925e1c5102aa58c51b5c68e64d0c01ca84f /QMTest | |
parent | 3031330216256cbff09b5631fdf68fa75d2439f2 (diff) | |
parent | d938777da7f4b9e908075dabb1554bef9882d60f (diff) | |
download | SCons-30247efa139711be7f2d7342c01b1c817985df0c.zip SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.gz SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.bz2 |
update from upstream
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestSConsMSVS.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/QMTest/TestSConsMSVS.py b/QMTest/TestSConsMSVS.py index 39dbb5e..fcca470 100644 --- a/QMTest/TestSConsMSVS.py +++ b/QMTest/TestSConsMSVS.py @@ -20,6 +20,8 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import sys import platform +import traceback +from xml.etree import ElementTree from TestSCons import * from TestSCons import __all__ @@ -1156,6 +1158,18 @@ print("self._msvs_versions =", str(SCons.Tool.MSCommon.query_versions())) return host + def validate_msvs_file(self, file): + try: + x = ElementTree.parse(file) + except: + print("--------------------------------------------------------------") + print("--------------------------------------------------------------") + print(traceback.format_exc()) + print("Failed to validate xml in MSVS file: ") + print(file) + print("--------------------------------------------------------------") + print("--------------------------------------------------------------") + self.fail_test() # Local Variables: # tab-width:4 # indent-tabs-mode:nil |