Improvement of cover script
*.pyc files break cover-script for situations like: some/module.py -> some.py So we should remove all *.pyc files before launching `testr --coverage` Change-Id: Ica22a3cd1a26d27c01f314a48a7cd49a529552eb
This commit is contained in:
parent
aa2c43c90c
commit
3aaca2e339
@ -28,7 +28,7 @@ uncommited=$(git status --porcelain | grep -v "^??")
|
||||
git checkout HEAD^
|
||||
|
||||
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
|
||||
baseline_missing=$(awk 'END { print $3 }' $baseline_report)
|
||||
|
||||
@ -38,7 +38,7 @@ git checkout -
|
||||
|
||||
# Generate and save coverage report
|
||||
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
|
||||
current_missing=$(awk 'END { print $3 }' $current_report)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user