aboutsummaryrefslogtreecommitdiff
path: root/infra/build_specified_commit.py
diff options
context:
space:
mode:
authorjonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2021-08-04 06:42:17 -0700
committerGitHub <noreply@github.com>2021-08-04 06:42:17 -0700
commitd88b5e4aa728515ab1a668fcc60dbb17c1658286 (patch)
tree6bb691287927696b53c2df06a0db49e0c7fc92a1 /infra/build_specified_commit.py
parent4f34600051a826687aded035108a5795a8949b40 (diff)
downloadoss-fuzz-d88b5e4aa728515ab1a668fcc60dbb17c1658286.tar.gz
[CIFuzz] Add support for external projects to helper.py (#6141)
Add support to helper.py for external projects for all subcommands except `download_corpora`. External users just need to specify `build_integration_path`, `project_src_path` and `external`. Also do a big refactor to pass a project object as part of args instead of a string containing the name of the project or its path. Related: #6125
Diffstat (limited to 'infra/build_specified_commit.py')
-rw-r--r--infra/build_specified_commit.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/infra/build_specified_commit.py b/infra/build_specified_commit.py
index 798010b7b..4768275e1 100644
--- a/infra/build_specified_commit.py
+++ b/infra/build_specified_commit.py
@@ -147,7 +147,7 @@ def copy_src_from_docker(project_name, host_dir):
@retry.wrap(_IMAGE_BUILD_TRIES, 2)
def _build_image_with_retries(project_name):
"""Build image with retries."""
- return helper.build_image_impl(project_name)
+ return helper.build_image_impl(helper.Project(project_name))
def get_required_post_checkout_steps(dockerfile_path):
@@ -223,7 +223,8 @@ def build_fuzzers_from_commit(commit,
post_checkout_step,
])
- result = helper.build_fuzzers_impl(project_name=build_data.project_name,
+ project = helper.Project(build_data.project_name)
+ result = helper.build_fuzzers_impl(project=project,
clean=True,
engine=build_data.engine,
sanitizer=build_data.sanitizer,