I am starting to play with the cli to automatically run ERC and DRC. The problem is that it fails even though running it manually passes.
I don’t see any option here that can help with this. There are --severity-*
, but this seems like I can only change it so warnings do not force a non-zero exit code. No option to use my configured severities and exclusions.
I think specifically it is ignoring the violations I marked excluded, but even then the numbers don’t add up (54 violations vs 37 exclusions).
kicad-cli pcb drc \
--schematic-parity \
--exit-code-violations \
"${pcbFile}"
Loading board
Running DRC...
Found 54 violations
Found 0 unconnected items
Found 0 schematic parity issues
Saved DRC Report to
Application: KiCad Symbol Editor x86_64 on x86_64
Version: 8.0.5, release build
Libraries:
wxWidgets 3.2.6
FreeType 2.13.3
HarfBuzz 9.0.0
FontConfig 2.15.0
libcurl/8.10.0 OpenSSL/3.3.2 zlib/1.3.1 brotli/1.1.0 zstd/1.5.6 libidn2/2.3.7 libpsl/0.21.5 libssh2/1.11.0 nghttp2/1.63.0 nghttp3/1.5.0
Platform: Arch Linux, 64 bit, Little endian, wxGTK, X11, KDE, x11
OpenGL: Intel, Mesa Intel(R) Arc(tm) A770 Graphics (DG2), 4.6 (Compatibility Profile) Mesa 24.2.2-arch1.1
Build Info:
Date: Sep 10 2024 12:58:22
wxWidgets: 3.2.6 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.86.0
OCC: 7.8.1
Curl: 8.9.1
ngspice: 43
Compiler: GCC 14.2.1 with C++ ABI 1019
Build settings:
KICAD_USE_EGL=ON