[PATCH] dts: grab linter return value
Luca Vizzarro
luca.vizzarro at arm.com
Wed Feb 19 00:07:46 CET 2025
In dts-check-format we were checking if the linter was updating the
tree, but we were not picking up the return value in case an unfixable
error would be raised.
Signed-off-by: Luca Vizzarro <luca.vizzarro at arm.com>
Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>
---
devtools/dts-check-format.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/devtools/dts-check-format.sh b/devtools/dts-check-format.sh
index 44501f6d3b..907eed1293 100755
--- a/devtools/dts-check-format.sh
+++ b/devtools/dts-check-format.sh
@@ -84,6 +84,7 @@ if $lint; then
heading "Linting in $directory/"
if command -v ruff > /dev/null; then
ruff check --fix
+ errors=$((errors + $?))
git update-index --refresh
retval=$?
--
2.43.0
More information about the dev
mailing list