[Update XML][KiCad 7] Enabled the board parity check
- Needs a patched KiCad, waiting for patch aproval (Bug 13921)
This commit is contained in:
parent
4a440078ae
commit
28ef08c00a
|
|
@ -109,7 +109,7 @@ class Update_XML(BasePreFlight): # noqa: F821
|
||||||
errors.append('PCB net code {} name mismatch ({} vs {})'.format(n, net_name, sch_name))
|
errors.append('PCB net code {} name mismatch ({} vs {})'.format(n, net_name, sch_name))
|
||||||
sch_nodes = net_nodes[n]
|
sch_nodes = net_nodes[n]
|
||||||
pcb_nodes = {pad.GetParent().GetReference()+' pin '+pad.GetNumber()
|
pcb_nodes = {pad.GetParent().GetReference()+' pin '+pad.GetNumber()
|
||||||
for pad in con.GetNetItems(n, [pcbnew.PCB_PAD_T])}
|
for pad in con.GetNetItems(n, pcbnew.PCB_PAD_T)}
|
||||||
dif = pcb_nodes-sch_nodes
|
dif = pcb_nodes-sch_nodes
|
||||||
if dif:
|
if dif:
|
||||||
errors.append('PCB net code {} extra connection/s: {}'.format(n, ','.join(list(dif))))
|
errors.append('PCB net code {} extra connection/s: {}'.format(n, ','.join(list(dif))))
|
||||||
|
|
@ -118,7 +118,7 @@ class Update_XML(BasePreFlight): # noqa: F821
|
||||||
errors.append('PCB net code {} missing connection/s: {}'.format(n, ','.join(list(dif))))
|
errors.append('PCB net code {} missing connection/s: {}'.format(n, ','.join(list(dif))))
|
||||||
|
|
||||||
def check_pcb_parity(self):
|
def check_pcb_parity(self):
|
||||||
if GS.ki5 or GS.ki7:
|
if GS.ki5:
|
||||||
logger.error('PCB vs schematic parity only available for KiCad 6')
|
logger.error('PCB vs schematic parity only available for KiCad 6')
|
||||||
exit(MISSING_TOOL)
|
exit(MISSING_TOOL)
|
||||||
fname = GS.sch_no_ext+'.xml'
|
fname = GS.sch_no_ext+'.xml'
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ def test_update_xml_1(test_dir):
|
||||||
|
|
||||||
@pytest.mark.slow
|
@pytest.mark.slow
|
||||||
@pytest.mark.eeschema
|
@pytest.mark.eeschema
|
||||||
@pytest.mark.skipif(context.ki5() or context.ki7(), reason="KiCad 6 implementation")
|
@pytest.mark.skipif(context.ki5(), reason="KiCad 6 implementation")
|
||||||
def test_update_xml_2(test_dir):
|
def test_update_xml_2(test_dir):
|
||||||
prj = 'pcb_parity'
|
prj = 'pcb_parity'
|
||||||
ctx = context.TestContext(test_dir, prj, 'update_xml_2', '')
|
ctx = context.TestContext(test_dir, prj, 'update_xml_2', '')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue