Commit 03bd6a4b by Marcus Winter

scripts: fixed bug in run_cpplint.sh causing jenkins to fail always

parent 3fe8959b
...@@ -75,7 +75,7 @@ PARENTHESIS_RULE=",-whitespace/parens" ...@@ -75,7 +75,7 @@ PARENTHESIS_RULE=",-whitespace/parens"
C_CAST_RULE=",-readability/casting" C_CAST_RULE=",-readability/casting"
LONG_LINES_RULE=",-whitespace/line_length" LONG_LINES_RULE=",-whitespace/line_length"
retval=true retval=0
##Excluded files ##Excluded files
RAND_FILES=( embb_mtapi_test_group.cc embb_mtapi_test_queue.cc embb_mtapi_test_task.cc queue_test-inl.h ) 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 ...@@ -121,10 +121,10 @@ do
fi fi
done done
python ${c} --filter=$current_rules --root="$project/include" --output=vs7 $file python ${c} --filter=$current_rules --root="$project/include" --output=vs7 $file
if [ $? != $0 ]; then if [[ ! $? -eq 0 ]]; then
retval=false retval=$((retval+1))
fi fi
done done
done done
echo "$retval files contained errors."
$retval exit $retval
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment