Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/integrationtest/data_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class integtest_param_base_class:
connsvc_port: int = 0
connsvc_debug_level: int = None

# whether the HDF5 files should be deleted at the end of the test
remove_hdf5_files: bool = False

@dataclass
class integtest_params_for_generated_dunedaq_config(integtest_param_base_class):
# *** Parameters that are needed for both generated and predefined configs,
Expand Down Expand Up @@ -107,9 +110,9 @@ class integtest_params_for_predefined_dunedaq_config(integtest_param_base_class)

@dataclass
class CreateConfigResult:
config: integtest_param_base_class
config_dir: str
config_file: str
integtest_params: integtest_param_base_class
dunedaq_config_dir: str
dunedaq_config_file: str
log_file: str
data_dirs: list[str]
tpstream_data_dirs: list[str]
Expand Down
9 changes: 8 additions & 1 deletion src/integrationtest/integrationtest_commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def pytest_addoption(parser):
"--integtest-verbosity",
action="store",
default=3,
help="The volume of messages that are printed out by the integration test infrastructure",
help="This controls the volume of messages that are printed out by the integration test infrastructure (1 is lowest, 6 is highest)",
required=False
)
parser.addoption(
Expand All @@ -56,6 +56,13 @@ def pytest_addoption(parser):
help="A phrase that, if found in run control messages, will trigger the printout of all RC messages",
required=False
)
parser.addoption(
"--remove-hdf5-files",
action="store",
default=None,
help="Whether to remove HDF5 (data) files when the testing has finished (this over-rides the choice in the integtest). 'always' forces files to be removed, 'never' forces files to be kept.",
required=False
)

def pytest_configure(config):
for opt in ("--dunerc-path",):
Expand Down
Loading