aboutsummaryrefslogtreecommitdiff
path: root/infra/cifuzz
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-08-05 15:20:56 -0700
committerGitHub <noreply@github.com>2021-08-05 22:20:56 +0000
commitfcca81b36f858ef8791f9a0a434d9b67057a9814 (patch)
tree09d99a0d15bf77853d4b0b17554f7fbb3ce390c2 /infra/cifuzz
parentd01808333d086dd259f6c6fbf07457664faf7bb7 (diff)
downloadoss-fuzz-fcca81b36f858ef8791f9a0a434d9b67057a9814.tar.gz
[cifuzz] Add feedback for bad build check (#6174)
Diffstat (limited to 'infra/cifuzz')
-rw-r--r--infra/cifuzz/build_fuzzers.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/infra/cifuzz/build_fuzzers.py b/infra/cifuzz/build_fuzzers.py
index 0b8f9afa5..126ffe938 100644
--- a/infra/cifuzz/build_fuzzers.py
+++ b/infra/cifuzz/build_fuzzers.py
@@ -204,8 +204,13 @@ def check_fuzzer_build(config):
env['ALLOWED_BROKEN_TARGETS_PERCENTAGE'] = (
config.allowed_broken_targets_percentage)
- _, _, retcode = utils.execute('test_all.py', env=env)
- return retcode == 0
+ stdout, stderr, retcode = utils.execute('test_all.py', env=env)
+ print(f'Build check: stdout: {stdout}\nstderr: {stderr}')
+ if retcode == 0:
+ logging.info('Build check passed.')
+ return True
+ logging.info('Build check failed.')
+ return False
def _get_docker_build_fuzzers_args_not_container(host_repo_path):