From 1b597043f5e656b3e1664815043debe129ae2164 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 23 Sep 2022 09:49:53 -0300 Subject: [PATCH] [Tests] Added same tollerance to all diff checks --- tests/test_plot/test_misc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_plot/test_misc.py b/tests/test_plot/test_misc.py index f8e5404f..f9c14a13 100644 --- a/tests/test_plot/test_misc.py +++ b/tests/test_plot/test_misc.py @@ -1308,7 +1308,7 @@ def test_diff_git_1(test_dir): shutil.copy2(ctx.board_file.replace(prj, prj+'_diff'), file) # Run the test ctx.run(extra=['-b', file], no_board_file=True) - ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y) + ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y, tol=DIFF_TOL) ctx.clean_up(keep_project=True) @@ -1362,7 +1362,7 @@ def test_diff_git_2(test_dir): f.write('Bye!\n') # Run the test ctx.run(extra=['-b', file], no_board_file=True, extra_debug=True) - ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y) + ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y, tol=DIFF_TOL) # Check the submodule was restored with open(some_file, 'rt') as f: msg = f.read() @@ -1401,7 +1401,7 @@ def test_diff_git_3(test_dir): ctx.run_command(['git', 'commit', '-m', 'New version'], chdir_out=True) # Run the test ctx.run(extra=['-b', file], no_board_file=True, extra_debug=True) - ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y) + ctx.compare_pdf(prj+'-diff_pcb.pdf', off_y=OFFSET_Y, tol=DIFF_TOL) ctx.clean_up(keep_project=True)