From d88b5e4aa728515ab1a668fcc60dbb17c1658286 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Wed, 4 Aug 2021 06:42:17 -0700 Subject: [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 --- infra/bisector.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'infra/bisector.py') diff --git a/infra/bisector.py b/infra/bisector.py index a9df522a2..9afdc7c50 100644 --- a/infra/bisector.py +++ b/infra/bisector.py @@ -105,7 +105,7 @@ def main(): architecture=args.architecture) result = bisect(args.type, args.old_commit, args.new_commit, - args.testcase_path, args.fuzz_target, build_data) + args.test_case_path, args.fuzz_target, build_data) if not result.commit: logging.error('No error was found in commit range %s:%s', args.old_commit, args.new_commit) @@ -142,12 +142,15 @@ def _check_for_crash(project_name, fuzz_target, testcase_path): return utils.execute(command + args) logging.info('Checking for crash') - out, err, return_code = helper.reproduce_impl(project_name, - fuzz_target, - False, [], [], - testcase_path, - run_function=docker_run, - err_result=(None, None, None)) + out, err, return_code = helper.reproduce_impl( + project=helper.Project(project_name), + fuzzer_name=fuzz_target, + valgrind=False, + env_to_add=[], + fuzzer_args=[], + testcase_path=testcase_path, + run_function=docker_run, + err_result=(None, None, None)) if return_code is None: return None -- cgit v1.2.3