aboutsummaryrefslogtreecommitdiff
path: root/infra/build_specified_commit.py
diff options
context:
space:
mode:
authorOliver Chang <oliverchang@users.noreply.github.com>2020-04-15 16:03:52 +1000
committerGitHub <noreply@github.com>2020-04-15 16:03:52 +1000
commit0f22065c166b2a460b75ece7b7472edb6dc15b1a (patch)
tree8b02d282d685a8fa1f85965ba76be1920bb0b6ef /infra/build_specified_commit.py
parentd22704877b7034d7d0b50756bd14d8648943b140 (diff)
downloadoss-fuzz-0f22065c166b2a460b75ece7b7472edb6dc15b1a.tar.gz
bisector: raise exceptions when building new or old commit fails. (#3653)
Let build failures continue during the actual bisection for now to keep the bisection going. A future PR can improve the logic of that when it happens.
Diffstat (limited to 'infra/build_specified_commit.py')
-rw-r--r--infra/build_specified_commit.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/infra/build_specified_commit.py b/infra/build_specified_commit.py
index 1cabcd79b..dbdb63b96 100644
--- a/infra/build_specified_commit.py
+++ b/infra/build_specified_commit.py
@@ -59,14 +59,15 @@ def build_fuzzers_from_commit(commit, build_repo_manager, host_src_path,
0 on successful build or error code on failure.
"""
build_repo_manager.checkout_commit(commit)
- return helper.build_fuzzers_impl(project_name=build_data.project_name,
- clean=True,
- engine=build_data.engine,
- sanitizer=build_data.sanitizer,
- architecture=build_data.architecture,
- env_to_add=None,
- source_path=host_src_path,
- mount_location=os.path.join('/src'))
+ result = helper.build_fuzzers_impl(project_name=build_data.project_name,
+ clean=True,
+ engine=build_data.engine,
+ sanitizer=build_data.sanitizer,
+ architecture=build_data.architecture,
+ env_to_add=None,
+ source_path=host_src_path,
+ mount_location=os.path.join('/src'))
+ return result == 0
def detect_main_repo(project_name, repo_name=None, commit=None):