Merge "Improvement of cover script"

This commit is contained in:
Jenkins 2015-05-27 12:53:20 +00:00 committed by Gerrit Code Review
commit aa3933e2f9

View File

@ -28,7 +28,7 @@ uncommited=$(git status --porcelain | grep -v "^??")
git checkout HEAD^ git checkout HEAD^
baseline_report=$(mktemp -t rally_coverageXXXXXXX) baseline_report=$(mktemp -t rally_coverageXXXXXXX)
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 > $baseline_report
baseline_missing=$(awk 'END { print $3 }' $baseline_report) baseline_missing=$(awk 'END { print $3 }' $baseline_report)
@ -38,7 +38,7 @@ git checkout -
# Generate and save coverage report # Generate and save coverage report
current_report=$(mktemp -t rally_coverageXXXXXXX) current_report=$(mktemp -t rally_coverageXXXXXXX)
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 > $current_report
current_missing=$(awk 'END { print $3 }' $current_report) current_missing=$(awk 'END { print $3 }' $current_report)