[Tests] Ignore convert errors for v7 PDFs

- Not sure if they are important
This commit is contained in:
Salvador E. Tropea 2023-02-24 19:46:12 -03:00
parent b7f9058004
commit 423f5e3359
1 changed files with 6 additions and 1 deletions

View File

@ -521,7 +521,12 @@ class TestContext(object):
# m = re.match(r'([\d\.e-]+) \(([\d\.e-]+)\)', res.decode())
# assert m
# logging.debug('MSE={} ({})'.format(m.group(1), m.group(2)))
ae = int(res.decode())
s = res.decode()
# Remove error messages generated by KiCad 7 plotted PDFs
s = re.sub(r'^\s+\*+.*', '', s, 0, re.M)
s = re.sub(r'^\s+Output may be incorrect.*', '', s, 0, re.M)
s = s.strip()
ae = int(s)
logging.debug('AE=%d' % ae)
if png_ref:
os.remove(png_ref)