Skip to content
Snippets Groups Projects
Commit 36dcd26b authored by Basile Desloges's avatar Basile Desloges
Browse files

[ci] Change scale of coverage

Keep 4 decimal digits for the coverage to better see changes in the
mountain of code.
parent 0ffd25a1
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,7 @@ RATE=$(echo "$LINE" | sed -e 's/.*line-rate=\"\(.*\)\".*/\1/') ...@@ -38,7 +38,7 @@ RATE=$(echo "$LINE" | sed -e 's/.*line-rate=\"\(.*\)\".*/\1/')
PERCENT="0.0" PERCENT="0.0"
if [ "$RATE" != "-nan" ]; then if [ "$RATE" != "-nan" ]; then
# Keep the "/1", bc DOES NOT use scale for anything else than division ... # Keep the "/1", bc DOES NOT use scale for anything else than division ...
PERCENT=$(echo "scale=2; (100 * $RATE)/1" | bc -l) PERCENT=$(echo "scale=4; (100 * $RATE)/1" | bc -l)
fi fi
echo "Coverage: $PERCENT%" echo "Coverage: $PERCENT%"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment