diff --git a/infra/cifuzz/continuous_integration.py b/infra/cifuzz/continuous_integration.py index f3e93b7aae7b..28b934a7760c 100644 --- a/infra/cifuzz/continuous_integration.py +++ b/infra/cifuzz/continuous_integration.py @@ -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 diff --git a/infra/helper.py b/infra/helper.py index d3a4806d99fd..d00ff4e87325 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -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',