diff options
author | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2021-08-05 15:20:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 22:20:56 +0000 |
commit | fcca81b36f858ef8791f9a0a434d9b67057a9814 (patch) | |
tree | 09d99a0d15bf77853d4b0b17554f7fbb3ce390c2 | |
parent | d01808333d086dd259f6c6fbf07457664faf7bb7 (diff) | |
download | oss-fuzz-fcca81b36f858ef8791f9a0a434d9b67057a9814.tar.gz |
[cifuzz] Add feedback for bad build check (#6174)
-rw-r--r-- | infra/cifuzz/build_fuzzers.py | 9 |
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): |