SERVER-90498 Allow a single js suite to be run with multiple js files (#22168)
GitOrigin-RevId: b601ddb52bb21681975618429d94ba95384958fe
This commit is contained in:
committed by
MongoDB Bot
parent
c78dcac9c8
commit
774d062184
@@ -2,9 +2,9 @@
|
||||
|
||||
import datetime
|
||||
import os
|
||||
from typing import Optional
|
||||
|
||||
from buildscripts.resmokelib import core
|
||||
from buildscripts.resmokelib import utils
|
||||
from buildscripts.resmokelib import core, logging, utils
|
||||
from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface
|
||||
from buildscripts.resmokelib.testing.testcases import interface
|
||||
|
||||
@@ -15,13 +15,16 @@ class CPPLibfuzzerTestCase(interface.ProcessTestCase):
|
||||
REGISTERED_NAME = "cpp_libfuzzer_test"
|
||||
DEFAULT_TIMEOUT = datetime.timedelta(hours=1)
|
||||
|
||||
def __init__(self, logger, program_executable, program_options=None, runs=1000000,
|
||||
def __init__(self, logger: logging.Logger, program_executables: list[str],
|
||||
program_options: Optional[dict] = None, runs: int = 1000000,
|
||||
corpus_directory_stem="corpora"):
|
||||
"""Initialize the CPPLibfuzzerTestCase with the executable to run."""
|
||||
|
||||
interface.ProcessTestCase.__init__(self, logger, "C++ libfuzzer test", program_executable)
|
||||
assert len(program_executables) == 1
|
||||
interface.ProcessTestCase.__init__(self, logger, "C++ libfuzzer test",
|
||||
program_executables[0])
|
||||
|
||||
self.program_executable = program_executable
|
||||
self.program_executable = program_executables[0]
|
||||
self.program_options = utils.default_if_none(program_options, {}).copy()
|
||||
|
||||
self.runs = runs
|
||||
|
||||
Reference in New Issue
Block a user