summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2016-11-27 23:25:05 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2016-11-27 23:25:05 (GMT)
commit30247efa139711be7f2d7342c01b1c817985df0c (patch)
treeb4360925e1c5102aa58c51b5c68e64d0c01ca84f /QMTest
parent3031330216256cbff09b5631fdf68fa75d2439f2 (diff)
parentd938777da7f4b9e908075dabb1554bef9882d60f (diff)
downloadSCons-30247efa139711be7f2d7342c01b1c817985df0c.zip
SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.gz
SCons-30247efa139711be7f2d7342c01b1c817985df0c.tar.bz2
update from upstream
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestSConsMSVS.py14
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