[Tests] Ignore convert errors for v7 PDFs
- Not sure if they are important
This commit is contained in:
parent
b7f9058004
commit
423f5e3359
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue