Commit cb444a28 authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Fix for coverage failures when only one python file

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