From 905c996fedc10af69ae4a3ae7b1fe3255d15b3f5 Mon Sep 17 00:00:00 2001 From: Boris Pavlovic Date: Mon, 21 Sep 2015 13:17:45 -0700 Subject: [PATCH] Fix & Restore cover job Change ignore-errors to ignore_errors which is needed by coverage 4.0 Restore coverage job (run cover job) Closes-bug: #1497897 Change-Id: I2df04cf6b239777cfc7b1bafac87aa4bf38d881c --- .coveragerc | 1 + tests/ci/cover.sh | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index e72d1d12..f61a0537 100644 --- a/.coveragerc +++ b/.coveragerc @@ -3,4 +3,5 @@ branch = True source = rally [report] +ignore_errors = True precision = 3 diff --git a/tests/ci/cover.sh b/tests/ci/cover.sh index b2a600fb..e9d9b0a4 100755 --- a/tests/ci/cover.sh +++ b/tests/ci/cover.sh @@ -15,8 +15,6 @@ # License for the specific language governing permissions and limitations # under the License. -exit 0 - ALLOWED_EXTRA_MISSING=4 show_diff () { @@ -32,6 +30,7 @@ git checkout HEAD^ baseline_report=$(mktemp -t rally_coverageXXXXXXX) find . -type f -name "*.pyc" -delete && python setup.py testr --coverage --testr-args="$*" coverage report > $baseline_report +cat $baseline_report baseline_missing=$(awk 'END { print $3 }' $baseline_report) # Checkout back and unstash uncommitted changes (if any)