Index: utils/lit/lit/Test.py =================================================================== --- utils/lit/lit/Test.py +++ utils/lit/lit/Test.py @@ -1,4 +1,5 @@ import os +from xml.sax.saxutils import escape # Test result codes. @@ -194,3 +195,14 @@ return True return False + + def getJUnitXML(self): + xml = "\n") + xmlFile.write("\n") + for suiteName in bySuite: + s = bySuite[suiteName] + xmlFile.write("\n") + for t in s['tests']: + xmlFile.write(t.getJUnitXML() + "\n") + xmlFile.write("\n") + xmlFile.write("") + xmlFile.close() + # If we encountered any additional errors, exit abnormally. if litConfig.numErrors: