Move coverage reports to `cover` directory

Zuul's fetch-coverage-output role [1] expects coverage reports in `cover`
directory. This commit updates the target directory in the `run_test.sh` script.

[1] http://git.openstack.org/cgit/openstack-infra/zuul-jobs/tree/roles/fetch-coverage-output

Change-Id: I5375e6136222aa1be4dce207e4cc9e1d0ed0f13c
This commit is contained in:
Witold Bedyk 2018-03-16 14:54:20 +01:00
parent c48050cc99
commit a75199f21c
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ function run_tests_all {
echo "Generating coverage reports"
${command_wrapper} ${COVERAGE_CMD} combine
${command_wrapper} ${COVERAGE_CMD} xml -i --omit='monitoring/**/tests.py,monitoring/test/*,**/shiningpanda/**,/usr*,setup.py,*egg*,.venv/*'
${command_wrapper} ${COVERAGE_CMD} html -i --omit='monitoring/**/tests.py,monitoring/test/*,**/shiningpanda/**,/usr*,setup.py,*egg*,.venv/*' -d reports
${command_wrapper} ${COVERAGE_CMD} html -i --omit='monitoring/**/tests.py,monitoring/test/*,**/shiningpanda/**,/usr*,setup.py,*egg*,.venv/*' -d cover
fi
# Remove the leftover coverage files from the -p flag earlier.
rm -f .coverage.*