[Test] More image tollerances
This commit is contained in:
parent
7acf971b55
commit
54b7cfb2a7
|
|
@ -9,12 +9,14 @@ pytest-3 --log-cli-level debug
|
|||
|
||||
"""
|
||||
import logging
|
||||
import os
|
||||
import pytest
|
||||
from . import context
|
||||
PDF_DIR = 'Layers'
|
||||
PDF_FILE = 'bom-F_Cu+F_SilkS.pdf'
|
||||
PDF_FILE_B = 'PCB_Bot.pdf'
|
||||
PDF_FILE_C = 'PCB_Bot_def.pdf'
|
||||
DIFF_TOL = 0 if os.path.isfile('/etc/debian_version') else 5000
|
||||
|
||||
|
||||
@pytest.mark.slow
|
||||
|
|
@ -156,6 +158,6 @@ def test_pcb_print_multizone_1(test_dir):
|
|||
prj = 'print_multizone'
|
||||
ctx = context.TestContext(test_dir, prj, 'print_multizone')
|
||||
ctx.run()
|
||||
ctx.compare_image(prj+'-assembly_page_01.png')
|
||||
ctx.compare_image(prj+'-assembly_page_02.png')
|
||||
ctx.compare_image(prj+'-assembly_page_01.png', tol=DIFF_TOL)
|
||||
ctx.compare_image(prj+'-assembly_page_02.png', tol=DIFF_TOL)
|
||||
ctx.clean_up()
|
||||
|
|
|
|||
Loading…
Reference in New Issue