diff --git a/tests/eeschema/test_export.py b/tests/eeschema/test_export.py index dc6a92b..8bd5d69 100644 --- a/tests/eeschema/test_export.py +++ b/tests/eeschema/test_export.py @@ -42,7 +42,7 @@ def test_export_pdf(test_dir): cmd = [PROG, '-vv', '-r', 'export', '--file_format', 'pdf'] ctx.run(cmd) ctx.expect_out_file(pdf) - ctx.compare_image(pdf, 'good_sch_top.pdf') + ctx.compare_image(pdf, 'good_sch_top.pdf', fuzz='31%') # Check the .pro wasn't altered logging.debug("Checking .pro wasn't altered") assert mtime == ctx.get_pro_mtime() diff --git a/tests/reference/7/good-project-Power.ps b/tests/reference/7/good-project-Power.ps index 5686204..c9a9eb7 100644 Binary files a/tests/reference/7/good-project-Power.ps and b/tests/reference/7/good-project-Power.ps differ diff --git a/tests/reference/7/good-project-logic.ps b/tests/reference/7/good-project-logic.ps index 2f31fd2..10ba124 100644 Binary files a/tests/reference/7/good-project-logic.ps and b/tests/reference/7/good-project-logic.ps differ diff --git a/tests/reference/7/good-project.ps b/tests/reference/7/good-project.ps index 4a842b4..3cd1d0b 100644 Binary files a/tests/reference/7/good-project.ps and b/tests/reference/7/good-project.ps differ diff --git a/tests/reference/7/good_pcb_sep_bn.pdf b/tests/reference/7/good_pcb_sep_bn.pdf index 80364d0..f89b821 100644 Binary files a/tests/reference/7/good_pcb_sep_bn.pdf and b/tests/reference/7/good_pcb_sep_bn.pdf differ diff --git a/tests/reference/7/good_pcb_sep_bn_fit.pdf b/tests/reference/7/good_pcb_sep_bn_fit.pdf index c8874d9..4563075 100644 Binary files a/tests/reference/7/good_pcb_sep_bn_fit.pdf and b/tests/reference/7/good_pcb_sep_bn_fit.pdf differ diff --git a/tests/reference/7/good_sch_all.pdf b/tests/reference/7/good_sch_all.pdf index 0db48ea..74bf56f 100644 Binary files a/tests/reference/7/good_sch_all.pdf and b/tests/reference/7/good_sch_all.pdf differ diff --git a/tests/utils/context.py b/tests/utils/context.py index 420a47c..cc11468 100644 --- a/tests/utils/context.py +++ b/tests/utils/context.py @@ -313,7 +313,7 @@ def compare_ps(self, image, reference=None, diff='diff.png'): self.compare_image(image_png, reference_png, diff) os.remove(os.path.join(self.ref_dir, reference_png)) - def compare_pdf(self, gen, reference=None, diff='diff-{}.png'): + def compare_pdf(self, gen, reference=None, diff='diff-{}.png', fuzz='30%'): """ For multi-page PDFs """ if reference is None: reference = gen @@ -339,7 +339,7 @@ def compare_pdf(self, gen, reference=None, diff='diff-{}.png'): for page in range(len(ref_pages)): self._compare_image(self.get_out_path('ref-'+str(page)+'.png'), self.get_out_path('gen-'+str(page)+'.png'), - self.get_out_path(diff.format(page))) + self.get_out_path(diff.format(page)), fuzz=fuzz) def compare_txt(self, text, reference=None, diff='diff.txt'): if reference is None: