Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion infra/cifuzz/generate_coverage_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module for generating coverage reports."""
import logging
import os

import base_runner_utils
Expand All @@ -27,7 +28,15 @@ def run_coverage_command(config, workspace):
env['CORPUS_DIR'] = workspace.corpora
env['COVERAGE_OUTPUT_DIR'] = workspace.coverage_report
command = 'coverage'
return utils.execute(command, env=env)

stdout, stderr, return_code = utils.execute(command, env=env)
if stdout:
logging.info('coverage stdout:\n%s', stdout)
if stderr:
logging.info('coverage stderr:\n%s', stderr)
if return_code:
logging.error('coverage command exited with code %d.', return_code)
return stdout, stderr, return_code


def download_corpora(fuzz_target_paths, clusterfuzz_deployment):
Expand Down
Loading