Merge pull request #5486 from therearesomewhocallmetim/fix_testserver_2

Added more characters for replacement in log to xml converter.
This commit is contained in:
Arsentiy Milchakov 2017-02-28 13:53:53 +03:00 committed by GitHub
commit c2c59ae420

View file

@ -15,6 +15,8 @@ import xml.etree.ElementTree as ElementTree
from optparse import OptionParser
import re
REPLACE_CHARS_RE = re.compile("[\x00-\x1f]")
class PrefixesInLog:
OK = "OK"
@ -202,7 +204,7 @@ class Parser:
if line == "All tests passed." or re.match("\d{1,} tests failed", line, re.IGNORECASE):
self.var_should_pass = True
return False
line = line.replace("\0", "\\0")
line = REPLACE_CHARS_RE.sub("_", line)
self.test_info.append_comment(line)
return False