Merge branch 'jc/coccicheck-fails-make-when-it-fails'

"make coccicheck" succeeds even when spatch made suggestions, which
has been updated to fail in such a case.

* jc/coccicheck-fails-make-when-it-fails:
  coccicheck: fail "make" when it fails
This commit is contained in:
Junio C Hamano
2025-07-14 11:19:24 -07:00

View File

@@ -3468,11 +3468,14 @@ endif
coccicheck-test: $(COCCI_TEST_RES_GEN) coccicheck-test: $(COCCI_TEST_RES_GEN)
coccicheck: coccicheck-test coccicheck: coccicheck-test
ifdef SPATCH_CONCAT_COCCI ifdef SPATCH_CONCAT_COCCI
coccicheck: contrib/coccinelle/ALL.cocci.patch COCCICHECK_PATCH_MUST_BE_EMPTY_FILES = contrib/coccinelle/ALL.cocci.patch
else else
coccicheck: $(COCCICHECK_PATCHES_INTREE) COCCICHECK_PATCH_MUST_BE_EMPTY_FILES = $(COCCICHECK_PATCHES_INTREE)
endif endif
coccicheck: $(COCCICHECK_PATCH_MUST_BE_EMPTY_FILES)
! grep -q ^ $(COCCICHECK_PATCH_MUST_BE_EMPTY_FILES) /dev/null
# See contrib/coccinelle/README # See contrib/coccinelle/README
coccicheck-pending: coccicheck-test coccicheck-pending: coccicheck-test