From 37179d7e8d6407ae2d5453090aaa828683bbdd2e Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Thu, 12 Jan 2023 09:26:10 +1100 Subject: [PATCH] Fix exception in bisector.py (#9399) The `run_function` is passed an `architecture` keyword argument: https://github.com/google/oss-fuzz/blob/a8cb9370f0dddf33111b1a7ce6d715633d5400df/infra/helper.py#L1357 This makes the `run_function` passed in the bisector ignore all keyword arguments. Related: https://github.com/google/osv.dev/issues/963 --- infra/bisector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/bisector.py b/infra/bisector.py index 51f93c132..21333afdf 100644 --- a/infra/bisector.py +++ b/infra/bisector.py @@ -137,7 +137,8 @@ def _get_dedup_token(output): def _check_for_crash(project_name, fuzz_target, testcase_path): """Check for crash.""" - def docker_run(args): + def docker_run(args, **kwargs): + del kwargs command = ['docker', 'run', '--rm', '--privileged'] if sys.stdin.isatty(): command.append('-i')