zuul-jobs/roles/fetch-coverage-output/README.rst
Monty Taylor b6adb9a8c4 Don't fetch coverage report from failing tests
When test runs fail, coverage reports are not generated. We try to fetch
them anyway, which leads to POST_FAILURE instead of FAILURE.

Add in a check to ensure the test run was successful, then a check for
the coverage dir and an explicit error message so that it's clear to
people that the issue is that coverage wasn't generated after a
successful run, rather than there being an issue with rsync or
something.

Change-Id: I07f942a9df518d6602ee151d82b35ce413769c73
2018-01-17 19:53:57 +01:00

21 lines
542 B
ReStructuredText

Collect output from a coverage run
By default, this copies the output from a coverage run
on the worker to the log root of the executor.
**Role Variables**
.. zuul:rolevar:: zuul_executor_dest
:default: {{ zuul.executor.log_root }}
The destination directory on the executor. By default, the log
root.
.. zuul:rolevar:: coverage_output_src
:default: {{ zuul.project.src_dir }}/cover/
The location on the worker from which to fetch the coverage
output detail. By default, the ``cover`` dir of the current
project.