From 03bd6a4bcd6a83cbf63e4938e05ff58d0439b963 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Tue, 21 Oct 2014 13:08:47 +0200 Subject: [PATCH] scripts: fixed bug in run_cpplint.sh causing jenkins to fail always --- scripts/run_cpplint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/run_cpplint.sh b/scripts/run_cpplint.sh index 9492487..a60201b 100755 --- a/scripts/run_cpplint.sh +++ b/scripts/run_cpplint.sh @@ -75,7 +75,7 @@ PARENTHESIS_RULE=",-whitespace/parens" C_CAST_RULE=",-readability/casting" LONG_LINES_RULE=",-whitespace/line_length" -retval=true +retval=0 ##Excluded files RAND_FILES=( embb_mtapi_test_group.cc embb_mtapi_test_queue.cc embb_mtapi_test_task.cc queue_test-inl.h ) @@ -121,10 +121,10 @@ do fi done python ${c} --filter=$current_rules --root="$project/include" --output=vs7 $file - if [ $? != $0 ]; then - retval=false + if [[ ! $? -eq 0 ]]; then + retval=$((retval+1)) fi done done - -$retval +echo "$retval files contained errors." +exit $retval -- libgit2 0.26.0