topotest: json_cmp_result split error lines

When the API user wanted to show newlines we have to break them manually
to get the propper format.
This commit is contained in:
Rafael Zalamena 2017-09-19 17:05:07 -03:00 committed by Donald Sharp
parent bc2872fd17
commit 2db5888df5

View File

@ -51,7 +51,8 @@ class json_cmp_result(object):
def add_error(self, error):
"Append error message to the result"
self.errors.append(error)
for line in error.splitlines():
self.errors.append(line)
def has_errors(self):
"Returns True if there were errors, otherwise False."