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"
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
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