From e9f52d78533e6e635d021b59f7d80e67bec44848 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 18 Apr 2017 15:28:10 -0700 Subject: [PATCH] Adjust tox cover to check for 80% coverage In preparation for adding coverage to the octavia check gate, adjusts the cover tox job to check for 80% coverage. Change-Id: Ifa924da594af53d07f156aa0ffbb870389dcb513 --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index bf6ba457fc..ef4c5962b9 100644 --- a/tox.ini +++ b/tox.ini @@ -28,11 +28,11 @@ commands = [testenv:cover] whitelist_externals = sh commands = + coverage erase sh -c 'COVERAGE_FILE={toxinidir}/.coverage-py27 python setup.py testr --coverage --testr-args='{posargs}'' sh -c 'COVERAGE_FILE={toxinidir}/.coverage-functional OS_TEST_PATH={toxinidir}/octavia/tests/functional python setup.py testr --coverage --testr-args='{posargs}'' - sh -c 'ls -al' - coverage combine --debug=dataio {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional - coverage html -d cover + coverage combine {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional + coverage report --fail-under=80 --skip-covered [testenv:functional] setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional