Commit 745f9e41 authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Fix for coverage failures when only one python file

parent 0b021229
......@@ -234,8 +234,9 @@ function python_process_coverage() {
done
coverage_percentage=$(coverage report --omit "${ignore_options}" \
| egrep -o "^TOTAL.*([0-9\.]+)%" \
| awk 'END { print int($6) }')
| tail -1 \
| sed -n 's/^.*[^0-9]\([0-9][0-9\.]*\)%.*$/\1/ p' \
| awk 'END { print int($1) }')
echo "Python coverage: ${coverage_percentage}%"
}
......
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 to comment