From e939fe3ced4e93c38cdefb402dc2e11ab9cbc2a9 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 24 Apr 2020 15:37:22 +1000 Subject: [PATCH] bisector: Don't attempt to checkout old OSS-Fuzz revision if it does not exist. (#3707) --- infra/build_specified_commit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/build_specified_commit.py b/infra/build_specified_commit.py index 30f4b43ca..9b59cd088 100644 --- a/infra/build_specified_commit.py +++ b/infra/build_specified_commit.py @@ -127,6 +127,9 @@ def build_fuzzers_from_commit(commit, build_repo_manager, host_src_path, ], check_result=True) oss_fuzz_commit = oss_fuzz_commit.strip() + if not oss_fuzz_commit: + logging.warning('No suitable earlier OSS-Fuzz commit found.') + break logging.info('Build failed. Retrying on earlier OSS-Fuzz commit %s.', oss_fuzz_commit)