From 8d3d290c61c610c6312f60d81ea9a38f44292afd Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Tue, 4 Feb 2020 17:42:25 -0800 Subject: [infra] Generate full coverage JSONs for dataflow enabled targets (#1632). (#3325) --- infra/gcb/build_and_run_coverage.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'infra/gcb') diff --git a/infra/gcb/build_and_run_coverage.py b/infra/gcb/build_and_run_coverage.py index b94fe355..649d5ad8 100644 --- a/infra/gcb/build_and_run_coverage.py +++ b/infra/gcb/build_and_run_coverage.py @@ -147,15 +147,16 @@ def get_build_steps(project_dir): '*' * 80).format(name=name) # Unpack the corpus and run coverage script. + coverage_env = env + [ + 'HTTP_PORT=', + 'COVERAGE_EXTRA_ARGS=%s' % project_yaml['coverage_extra_args'].strip(), + ] + if 'dataflow' in project_yaml['fuzzing_engines']: + coverage_env.append('FULL_SUMMARY_PER_TARGET=1') + build_steps.append({ - 'name': - 'gcr.io/oss-fuzz-base/base-runner', - 'env': - env + [ - 'HTTP_PORT=', - 'COVERAGE_EXTRA_ARGS=%s' % - project_yaml['coverage_extra_args'].strip() - ], + 'name': 'gcr.io/oss-fuzz-base/base-runner', + 'env': coverage_env, 'args': [ 'bash', '-c', ('for f in /corpus/*.zip; do unzip -q $f -d ${f%%.*} || (' -- cgit v1.2.3