summaryrefslogtreecommitdiffstats
path: root/tests/ci/cover.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ci/cover.sh')
-rw-r--r--tests/ci/cover.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh
index 71833757a..6e4d608d9 100644
--- a/tests/ci/cover.sh
+++ b/tests/ci/cover.sh
@@ -34,6 +34,9 @@ run_coverage_test() {
git checkout HEAD^
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="$*"
coverage report > $baseline_report
baseline_missing=$(awk 'END { print $3 }' $baseline_report)
@@ -44,6 +47,9 @@ run_coverage_test() {
# Generate and save coverage report
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="$*"
coverage report > $current_report
current_missing=$(awk 'END { print $3 }' $current_report)