[Tests] Cleaner mechanism for test_diff_file_sch_1
- Taking advantage of -E option - So we avoid comparing the v7 file with the v6 file
This commit is contained in:
parent
a02999d50a
commit
0ffca702d7
|
|
@ -1484,9 +1484,9 @@ def test_diff_git_4(test_dir):
|
|||
def test_diff_file_sch_1(test_dir):
|
||||
""" Difference between the current Schematic and a reference file """
|
||||
prj = 'light_control_diff'
|
||||
yaml = 'diff_file_sch_'+('k5' if context.ki5() else 'k6')
|
||||
yaml = 'diff_file_sch'
|
||||
ctx = context.TestContext(test_dir, prj, yaml)
|
||||
ctx.run()
|
||||
ctx.run(extra=['-E', 'KiVer='+str(context.kicad_major), '-E', 'SCHExt='+context.KICAD_SCH_EXT])
|
||||
ctx.expect_out_file(prj+'-diff_sch_FILE-Current.pdf')
|
||||
ctx.compare_pdf(prj+'-diff_sch.pdf')
|
||||
ctx.clean_up(keep_project=True)
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ kibot:
|
|||
|
||||
outputs:
|
||||
- name: 'diff_sch'
|
||||
comment: "Schematic difference with reference file (KiCad 5)"
|
||||
comment: "Schematic difference with reference file (KiCad @KiVer@)"
|
||||
type: diff
|
||||
options:
|
||||
old: tests/board_samples/kicad_5/light_control.sch
|
||||
old: tests/board_samples/kicad_@KiVer@/light_control@SCHExt@
|
||||
pcb: false
|
||||
old_type: file
|
||||
add_link_id: true
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
kibot:
|
||||
version: 1
|
||||
|
||||
outputs:
|
||||
- name: 'diff_sch'
|
||||
comment: "Schematic difference with reference file (KiCad 6)"
|
||||
type: diff
|
||||
options:
|
||||
old: tests/board_samples/kicad_6/light_control.kicad_sch
|
||||
pcb: false
|
||||
old_type: file
|
||||
add_link_id: true
|
||||
copy_instead_of_link: true
|
||||
cache_dir: .cache
|
||||
Loading…
Reference in New Issue