Merge "Add coverage erase to the cover report"

This commit is contained in:
Jenkins 2017-03-06 12:33:18 +00:00 committed by Gerrit Code Review
commit 0dc2850cce

View File

@ -33,6 +33,9 @@ baseline_missing=$(awk 'END { print $3 }' $baseline_report)
git checkout - git checkout -
[[ -n $uncommitted ]] && git stash pop > /dev/null [[ -n $uncommitted ]] && git stash pop > /dev/null
# Erase previously collected coverage data.
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="$*"