[Test][KiCad 7.0.8] Avoid diff between KiCad 6 and 7 files

- 7.0.8 seems to apply some adjust to v6 files
This commit is contained in:
Salvador E. Tropea 2023-10-18 10:26:48 -03:00
parent 3cd644d19d
commit 8f841fe996
2 changed files with 13 additions and 1 deletions

View File

@ -1307,7 +1307,7 @@ def test_dont_stop_1(test_dir):
def test_diff_file_1(test_dir):
""" Difference between the current PCB and a reference file """
prj = 'light_control_diff'
yaml = 'diff_file_'+('k5' if context.ki5() else 'k6')
yaml = f'diff_file_k{context.kicad_major}'
ctx = context.TestContext(test_dir, prj, yaml)
ctx.run()
ctx.compare_pdf(prj+'-diff_pcb.pdf', reference='light_control-diff_pcb.pdf', off_y=OFFSET_Y, tol=DIFF_TOL)

View File

@ -0,0 +1,12 @@
kibot:
version: 1
outputs:
- name: 'diff_pcb'
comment: "PCB difference with reference file (KiCad 6)"
type: diff
layers: ['F.Cu', 'In1.Cu']
options:
old: tests/board_samples/kicad_7/light_control.kicad_pcb
old_type: file
cache_dir: .cache