aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ci
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-07-31 11:37:04 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-07-31 11:40:19 -0700
commit64bb89c6a0946bb696645bb8176f596faad86d84 (patch)
tree58c8d560f101c9e3ed8a4cb671d888a571c19616 /tests/ci
parent54f26bfe1cb139545ab86450342c6a7ab520dd83 (diff)
cover.sh: workaround 'db type could not be determined' bug
https://bugs.launchpad.net/testrepository/+bug/1229445 rm -f .testrepository/times.dbm remove that file before running testr Change-Id: I178efefebe600a65d1a28beb9b01f7dfecaa4d00 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'tests/ci')
-rw-r--r--tests/ci/cover.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh
index 71833757a..0c7c2358b 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)