qa_cli: update ERC test fixtures for severity reporting
Commit a5f5298cad added severity headers to ERC report output but
didn't update the CLI test reference files. Update the golden .rpt
files to include the new "Report includes:" header line, update the
.json golden file to include the new "included_severities" array, and
bump the JSON test's line_skip_count from 5 to 9 to skip past the
new block and the kicad_version field during comparison.
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
"$schema": "https://schemas.kicad.org/erc.v1.json",
|
||||
"coordinate_units": "mm",
|
||||
"date": "2025-08-20T22:30:33+0000",
|
||||
"included_severities": [
|
||||
"error",
|
||||
"warning"
|
||||
],
|
||||
"kicad_version": "9.0.4",
|
||||
"sheets": [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ERC report (2025-08-20T22:30:33+0000, Encoding UTF8)
|
||||
Report includes: Errors, Warnings
|
||||
|
||||
***** Sheet /
|
||||
[power_pin_not_driven]: Input Power pin not driven by any Output Power pins
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
ERC report (2025-08-20T22:30:34+0000, Encoding UTF8)
|
||||
Report includes: Errors, Warnings
|
||||
|
||||
***** Sheet /
|
||||
[power_pin_not_driven]: Input Power pin not driven by any Output Power pins
|
||||
|
||||
@@ -170,7 +170,7 @@ def test_sch_export_pythonbom( kitest,
|
||||
@pytest.mark.parametrize("test_file,output_fn,line_skip_count,skip_compare,expected_exit_code,cli_args",
|
||||
[("cli/basic_test/basic_test.kicad_sch", "basic_test.erc.rpt", 1, False, 0, []),
|
||||
("cli/basic_test/basic_test.kicad_sch", "basic_test.erc.rpt", 1, False, 0, ["--format=report"]),
|
||||
("cli/basic_test/basic_test.kicad_sch", "basic_test.erc.json", 5, False,0, ["--format=json"]),
|
||||
("cli/basic_test/basic_test.kicad_sch", "basic_test.erc.json", 9, False,0, ["--format=json"]),
|
||||
("cli/basic_test/basic_test.kicad_sch", "basic_test.erc.unitsin.rpt", 1, False, 0, ["--format=report", "--units=in"]),
|
||||
])
|
||||
def test_sch_export_erc( kitest,
|
||||
|
||||
Reference in New Issue
Block a user