Adjusted fuzzyness for the PcbDraw tests (v0.9.0 needs it)
This commit is contained in:
parent
118c81120b
commit
18272f8e06
|
|
@ -105,11 +105,11 @@ def test_pcbdraw_variant_1(test_dir):
|
|||
# Check all outputs are there
|
||||
fname = prj+'-top.png'
|
||||
ctx.expect_out_file(fname)
|
||||
# We use 30% because different versions of the tools are generating large differences
|
||||
# in the borders. With 30% these differences are removed and we still detect is a
|
||||
# We use 40% because different versions of the tools are generating large differences
|
||||
# in the borders. With 40% these differences are removed and we still detect is a
|
||||
# components was removed.
|
||||
# Expected: R1 and R2 populated
|
||||
ctx.compare_image(fname, fuzz='30%')
|
||||
ctx.compare_image(fname, fuzz='40%')
|
||||
ctx.clean_up(keep_project=True)
|
||||
|
||||
|
||||
|
|
@ -121,7 +121,7 @@ def test_pcbdraw_variant_2(test_dir):
|
|||
fname = prj+'-top-C1.png'
|
||||
ctx.expect_out_file(fname)
|
||||
# Expected: R1 and R2 populated + C1 manually added
|
||||
ctx.compare_image(fname, fuzz='30%')
|
||||
ctx.compare_image(fname, fuzz='40%')
|
||||
ctx.clean_up(keep_project=True)
|
||||
|
||||
|
||||
|
|
@ -132,6 +132,6 @@ def test_pcbdraw_variant_3(test_dir):
|
|||
# Check all outputs are there
|
||||
fname = prj+'-top.png'
|
||||
ctx.expect_out_file(fname)
|
||||
ctx.compare_image(fname, fuzz='30%')
|
||||
ctx.compare_image(fname, fuzz='40%')
|
||||
assert ctx.search_err("Ambiguous list of components to show .?none.? vs variant/filter")
|
||||
ctx.clean_up(keep_project=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue