Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1422387 > unrolled thread

[PATCH 1/4] coccicheck: propagate error and stop processing after first error

Started by"Luis R. Rodriguez" <mcgrof@kernel.org>
First post2016-06-15 00:20 +0200
Last post2016-06-15 00:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] coccicheck: propagate error and stop processing after first error "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-06-15 00:20 +0200

#1422387 — [PATCH 1/4] coccicheck: propagate error and stop processing after first error

From"Luis R. Rodriguez" <mcgrof@kernel.org>
Date2016-06-15 00:20 +0200
Subject[PATCH 1/4] coccicheck: propagate error and stop processing after first error
Message-ID<rK4QF-2oZ-9@gated-at.bofh.it>
Propagate back in the shell Coccinelle's error. Also stop
processing if an error has occured. This lets us handle some
errors in coccinelle cocci files and if they bail out we should
inspect the errors. This will be more useful later to help annotate
coccinelle version dependency requirements.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
 scripts/coccicheck | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/coccicheck b/scripts/coccicheck
index 37db7ac1dfae..ba7301ab0a3d 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -215,6 +215,11 @@ run_cmd_parmap() {
 		echo "Running ($NPROC in parallel): $@"
 	fi
 	$@ 2> ${DIR}/coccicheck.$$.err
+	if [[ $? -ne 0 ]]; then
+		echo "coccicheck failed"
+		cat $${DIR}/coccicheck.$$.err
+		exit $?
+	fi
 }
 
 run_cmd_old() {
-- 
2.8.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web