[Tests][Diff][Added] Compare with output and multi variant cases
This commit is contained in:
parent
18e4397a3d
commit
39e310edb8
|
|
@ -242,3 +242,20 @@ def test_sch_bizarre_cases(test_dir):
|
||||||
cov.save()
|
cov.save()
|
||||||
assert ok_pol is False
|
assert ok_pol is False
|
||||||
assert ok_pin is False
|
assert ok_pin is False
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.slow
|
||||||
|
@pytest.mark.eeschema
|
||||||
|
def test_sch_variant_diff(test_dir):
|
||||||
|
""" Diff between SCH variants, using a separated output and using mutivar """
|
||||||
|
prj = 'kibom-variant_3'
|
||||||
|
ctx = context.TestContext(test_dir, prj, 'sch_variant_1', '')
|
||||||
|
ctx.run()
|
||||||
|
ctx.expect_out_file(['kibom-variant_3-diff_sch_variant_sch_default.pdf',
|
||||||
|
'kibom-variant_3-diff_sch_variant_sch_production.pdf',
|
||||||
|
'kibom-variant_3-diff_sch_variant_sch_test.pdf',
|
||||||
|
'kibom-variant_3-diff_sch_Current-default_variant.pdf',
|
||||||
|
'kibom-variant_3-diff_sch_Current-production_variant.pdf',
|
||||||
|
'kibom-variant_3-diff_sch_Current-test_variant.pdf',
|
||||||
|
'kibom-variant_3-diff_sch.pdf'])
|
||||||
|
ctx.clean_up()
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,6 @@ outputs:
|
||||||
comment: "Schematic difference with variant"
|
comment: "Schematic difference with variant"
|
||||||
type: diff
|
type: diff
|
||||||
options:
|
options:
|
||||||
# old: pcb_default
|
|
||||||
# old_type: output
|
|
||||||
pcb: false
|
pcb: false
|
||||||
old: ''
|
old: ''
|
||||||
old_type: multivar
|
old_type: multivar
|
||||||
|
|
@ -62,3 +60,13 @@ outputs:
|
||||||
cache_dir: .cache
|
cache_dir: .cache
|
||||||
# use_file_id: true
|
# use_file_id: true
|
||||||
add_link_id: true
|
add_link_id: true
|
||||||
|
|
||||||
|
- name: 'diff_sch_output'
|
||||||
|
comment: "Schematic difference with variant"
|
||||||
|
type: diff
|
||||||
|
options:
|
||||||
|
old: sch_default
|
||||||
|
old_type: output
|
||||||
|
pcb: false
|
||||||
|
cache_dir: .cache
|
||||||
|
use_file_id: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue