autotest: correct extraction of fields from LogWrite messages

This commit is contained in:
Peter Barker 2022-03-31 11:33:38 +11:00 committed by Peter Barker
parent 934a125875
commit 582eed12bf

View File

@ -2306,6 +2306,8 @@ class AutoTest(ABC):
continue
if state == state_inside:
line = re.sub("//.*", "", line) # trim comments
# cpp-style string concatenation:
line = re.sub(r'"\s*"', '', line)
log_write_statement += line
if re.match(r".*\);", line):
log_write_statements.append(log_write_statement)