diff options
author | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2021-08-04 06:42:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 06:42:17 -0700 |
commit | d88b5e4aa728515ab1a668fcc60dbb17c1658286 (patch) | |
tree | 6bb691287927696b53c2df06a0db49e0c7fc92a1 /infra/bisector.py | |
parent | 4f34600051a826687aded035108a5795a8949b40 (diff) | |
download | oss-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/bisector.py')
-rw-r--r-- | infra/bisector.py | 17 |
1 files changed, 10 insertions, 7 deletions
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 |