From: Ross Brattain Date: Mon, 31 Jul 2017 21:13:58 +0000 (-0700) Subject: cover: another 'db type could not be determined' workaround X-Git-Tag: opnfv-5.0.RC1~324 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F38483%2F1;p=yardstick.git cover: another 'db type could not be determined' workaround Change-Id: Ib94ff2dfc86725e5367908296b5160f9565442b8 Signed-off-by: Ross Brattain --- diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh index 0c7c2358b..6e4d608d9 100644 --- a/tests/ci/cover.sh +++ b/tests/ci/cover.sh @@ -47,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)