fix logic to set check_fuzzer_help (#3130)

This commit is contained in:
Cheick Keita
2023-05-24 09:22:27 -07:00
committed by GitHub
parent 213fc2471f
commit dc0e7f76b3

View File

@ -66,7 +66,6 @@ class Libfuzzer(Command):
colocate_all_tasks: bool = False, colocate_all_tasks: bool = False,
colocate_secondary_tasks: bool = True, colocate_secondary_tasks: bool = True,
check_fuzzer_help: bool = False, check_fuzzer_help: bool = False,
no_check_fuzzer_help: bool = False,
expect_crash_on_failure: bool = False, expect_crash_on_failure: bool = False,
minimized_stack_depth: Optional[int] = None, minimized_stack_depth: Optional[int] = None,
module_allowlist: Optional[str] = None, module_allowlist: Optional[str] = None,
@ -76,15 +75,7 @@ class Libfuzzer(Command):
analyzer_env: Optional[Dict[str, str]] = None, analyzer_env: Optional[Dict[str, str]] = None,
tools: Optional[Container] = None, tools: Optional[Container] = None,
) -> None: ) -> None:
if check_fuzzer_help:
self.logger.warning(
"--check_fuzzer_help is the default and does not need to be set; this parameter will be removed in a future version"
)
check_fuzzer_help = not no_check_fuzzer_help
del no_check_fuzzer_help
target_options = target_options or [] target_options = target_options or []
regression_containers = [ regression_containers = [
(ContainerType.setup, containers[ContainerType.setup]), (ContainerType.setup, containers[ContainerType.setup]),
(ContainerType.crashes, containers[ContainerType.crashes]), (ContainerType.crashes, containers[ContainerType.crashes]),