summaryrefslogtreecommitdiffstats
path: root/tests/ci/cover.sh
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-07-31 19:34:16 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-07-31 19:34:16 -0700
commitee9e4cf2d0daf1e05e1ea628e851e46daa4722a4 (patch)
treeda98dff3b26e33121028db1a683afbe26b41c7d8 /tests/ci/cover.sh
parentfe2820e7de65720bacf6533966867949804372bd (diff)
cover.sh: delete .testrepository before running coverage
When running py27 and py3 test ran into problems with .testrepository already exists, but testr thinking it was corrupt running testr No repository found in /home/jenkins/opnfv/slave_root/workspace/yardstick-verify-master. Create one by running "testr init". error: testr failed (3) The fix seems to be to delete .testrepository before running testr coverage Change-Id: Ib8cd3ab9d3384935380ac29ce365439c6464adc3 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'tests/ci/cover.sh')
-rw-r--r--tests/ci/cover.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh
index 6e4d608d9..822ed2ff2 100644
--- a/tests/ci/cover.sh
+++ b/tests/ci/cover.sh
@@ -36,8 +36,8 @@ run_coverage_test() {
baseline_report=$(mktemp -t yardstick_coverageXXXXXXX)
# workaround 'db type could not be determined' bug
# https://bugs.launchpad.net/testrepository/+bug/1229445
- rm -f .testrepository/times.dbm
- find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*"
+ rm -rf .testrepository
+ find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --slowest --testr-args="$*"
coverage report > $baseline_report
baseline_missing=$(awk 'END { print $3 }' $baseline_report)
@@ -49,8 +49,8 @@ run_coverage_test() {
current_report=$(mktemp -t yardstick_coverageXXXXXXX)
# workaround 'db type could not be determined' bug
# https://bugs.launchpad.net/testrepository/+bug/1229445
- rm -f .testrepository/times.dbm
- find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*"
+ rm -rf .testrepository
+ find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --slowest --testr-args="$*"
coverage report > $current_report
current_missing=$(awk 'END { print $3 }' $current_report)