[CFL] Interpret `PARALLEL_FUZZING` as a boolean value (#12655)

The `PARALLEL_FUZZING` environment variable is used to enable parallel
fuzzing in CFLite. The variable is always defined by GH Action, but it
was not interpreted as a boolean value, so it was always enabled even if
the option is set to `false`.

Co-authored-by: Vitor Guidi <vitorguidi@gmail.com>
This commit is contained in:
Yuta Saito 2024-11-01 02:07:15 +09:00 committed by GitHub
parent 9b858e019c
commit 65939bedc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class BaseConfig:
self.build_integration_path = ( self.build_integration_path = (
constants.DEFAULT_EXTERNAL_BUILD_INTEGRATION_PATH) constants.DEFAULT_EXTERNAL_BUILD_INTEGRATION_PATH)
self.parallel_fuzzing = os.environ.get('PARALLEL_FUZZING') self.parallel_fuzzing = environment.get_bool('PARALLEL_FUZZING', False)
self.extra_environment_variables = _get_extra_environment_variables() self.extra_environment_variables = _get_extra_environment_variables()
self.output_sarif = environment.get_bool('OUTPUT_SARIF', False) self.output_sarif = environment.get_bool('OUTPUT_SARIF', False)