Files
Seth Hillbrand 50a6e3ee89 Fix CLI ERC tests failing due to hardcoded KICAD9 env vars
The CLI test harness hardcoded KICAD9_SYMBOL_DIR and KICAD9_FOOTPRINT_DIR,
which stopped working after the version bump to KiCad 10. The versioned
env var fallback in KIwxExpandEnvVars could no longer resolve
KICAD8_FOOTPRINT_DIR references in fp-lib-table because the predefined
list only contains KICAD10_FOOTPRINT_DIR.

Dynamically detect the major version from kicad-cli at test startup and
set the matching versioned env vars. Also fix a pre-existing TypeError
when QA_DATA_ROOT is set (str vs Path).

Set footprint_link_issues to ignore in the test project to eliminate
environment-dependent ERC output, and update all three golden files
with the new ignored check entry.
2026-02-13 15:15:31 -08:00

143 lines
5.4 KiB
JSON

{
"$schema": "https://schemas.kicad.org/erc.v1.json",
"coordinate_units": "mm",
"date": "2026-02-11T17:46:45",
"ignored_checks": [
{
"description": "Global label only appears once in the schematic",
"key": "single_global_label"
},
{
"description": "Four connection points are joined together",
"key": "four_way_junction"
},
{
"description": "Footprint link issue",
"key": "footprint_link_issues"
},
{
"description": "Assigned footprint doesn't match footprint filters",
"key": "footprint_filter"
}
],
"included_severities": [
"error",
"warning"
],
"kicad_version": "10.0.0",
"sheets": [
{
"path": "/",
"uuid_path": "/64c481bc-ea0a-4f9c-a176-3729f4987c58",
"violations": [
{
"description": "Input Power pin not driven by any Output Power pins",
"items": [
{
"description": "Symbol U1 Pin 5 [V+, Power input, Line]",
"pos": {
"x": 1.4097,
"y": 0.7112
},
"uuid": "0123f423-4b4c-467f-8b7d-43421b82330d"
}
],
"severity": "error",
"type": "power_pin_not_driven"
},
{
"description": "Input Power pin not driven by any Output Power pins",
"items": [
{
"description": "Symbol U1 Pin 2 [V-, Power input, Line]",
"pos": {
"x": 1.4097,
"y": 0.8636
},
"uuid": "74f1f498-1594-4d18-a0fd-b624cedbd22a"
}
],
"severity": "error",
"type": "power_pin_not_driven"
},
{
"description": "The current configuration does not include the symbol library 'Connector'",
"items": [
{
"description": "Symbol J1 [Conn_01x01_Pin]",
"pos": {
"x": 1.0541,
"y": 0.635
},
"uuid": "203ec3c1-122c-4087-8f6d-2a0dd0b941e6"
}
],
"severity": "warning",
"type": "lib_symbol_issues"
},
{
"description": "The current configuration does not include the symbol library 'Connector'",
"items": [
{
"description": "Symbol J2 [Conn_01x01_Pin]",
"pos": {
"x": 1.0541,
"y": 0.762
},
"uuid": "2a9f5f63-d864-4898-ae3e-539c635e8f2c"
}
],
"severity": "warning",
"type": "lib_symbol_issues"
},
{
"description": "The current configuration does not include the symbol library 'Connector'",
"items": [
{
"description": "Symbol J4 [Conn_01x01_Pin]",
"pos": {
"x": 1.0541,
"y": 0.9906
},
"uuid": "789295bb-2cfb-4a2b-977f-b3831d5aa975"
}
],
"severity": "warning",
"type": "lib_symbol_issues"
},
{
"description": "The current configuration does not include the symbol library 'Amplifier_Operational'",
"items": [
{
"description": "Symbol U1 [TLV2371DBV]",
"pos": {
"x": 1.4351,
"y": 0.7874
},
"uuid": "b8a40376-5e4f-459f-9886-5e9ee83698cf"
}
],
"severity": "warning",
"type": "lib_symbol_issues"
},
{
"description": "The current configuration does not include the symbol library 'Connector'",
"items": [
{
"description": "Symbol J3 [Conn_01x01_Pin]",
"pos": {
"x": 1.778,
"y": 0.7874
},
"uuid": "9efa520e-00e1-47a2-b8dc-bf8e2121d065"
}
],
"severity": "warning",
"type": "lib_symbol_issues"
}
]
}
],
"source": "basic_test.kicad_sch"
}