Fix exception in bisector.py (#9399)

The `run_function` is passed an `architecture` keyword argument:

a8cb9370f0/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
This commit is contained in:
Oliver Chang 2023-01-12 09:26:10 +11:00 committed by GitHub
parent d053a8bf79
commit 37179d7e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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')