Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions infra/cifuzz/continuous_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,14 @@ def get_replace_repo_and_build_command(host_repo_path, image_repo_path):
"""Returns the command to replace the repo located at |image_repo_path| with
|host_repo_path| and build the project inside the project builder
container."""
rm_path = os.path.join(image_repo_path, '*')
image_src_path = os.path.dirname(image_repo_path)
build_command = get_build_command()
command = (f'cd / && rm -rf {rm_path} && cp -r {host_repo_path} '
f'{image_src_path} && cd - && {build_command}')
if host_repo_path is None:
command = f'{build_command}'
else:
rm_path = os.path.join(image_repo_path, '*')
image_src_path = os.path.dirname(image_repo_path)
command = (f'cd / && rm -rf {rm_path} && cp -r {host_repo_path} '
f'{image_src_path} && cd - && {build_command}')
return command


Expand Down
2 changes: 2 additions & 0 deletions infra/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ def run_clusterfuzzlite(args):
f'{filestore_path}:{filestore_path}',
'-v',
f'{workspace}:{workspace}',
'-v',
f'{common_utils.OSS_FUZZ_DIR}:/opt/oss-fuzz',
'-e',
f'FILESTORE_ROOT_DIR={filestore_path}',
'-e',
Expand Down
Loading