Include the missing lines in the coverage report

This should make it easier to see what files are different between the
two compared coverage reports.

Change-Id: I0367be79145ffb066c44342dcbe97e61a079d598
This commit is contained in:
Dougal Matthews 2017-03-06 11:50:12 +00:00
parent bc40d42dcb
commit 7a929a9588

View File

@ -26,7 +26,7 @@ git checkout HEAD^
baseline_report=$(mktemp -t mistral_coverageXXXXXXX) baseline_report=$(mktemp -t mistral_coverageXXXXXXX)
find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*" find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*"
coverage report > $baseline_report coverage report -m > $baseline_report
baseline_missing=$(awk 'END { print $3 }' $baseline_report) baseline_missing=$(awk 'END { print $3 }' $baseline_report)
previous_sha=$(git rev-parse HEAD); previous_sha=$(git rev-parse HEAD);
@ -40,7 +40,7 @@ coverage erase;
# Generate and save coverage report # Generate and save coverage report
current_report=$(mktemp -t mistral_coverageXXXXXXX) current_report=$(mktemp -t mistral_coverageXXXXXXX)
find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*" find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*"
coverage report > $current_report coverage report -m > $current_report
current_missing=$(awk 'END { print $3 }' $current_report) current_missing=$(awk 'END { print $3 }' $current_report)
# Show coverage details # Show coverage details