From c8d27ffc6ffee4f503f882d2c21a121fb7ce5666 Mon Sep 17 00:00:00 2001 From: Kurt Biery Date: Thu, 21 May 2026 12:07:23 -0500 Subject: [PATCH] Modified the integtest to support user-requested deletion of HDF5 files at the end of the test. --- integtest/simple_transform_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integtest/simple_transform_test.py b/integtest/simple_transform_test.py index cd95dfb..3257769 100644 --- a/integtest/simple_transform_test.py +++ b/integtest/simple_transform_test.py @@ -7,8 +7,8 @@ from daqconf.assets import resolve_asset_file import integrationtest.data_file_checks as data_file_checks import integrationtest.log_file_checks as log_file_checks -import integrationtest.basic_checks as basic_checks import integrationtest.data_classes as data_classes +import integrationtest.utility_functions as utility_functions from integrationtest.verbosity_helper import IntegtestVerbosityLevels from hdf5libs import HDF5RawDataFile @@ -160,7 +160,7 @@ def test_dunerc_success(run_dunerc, caplog): # check for run control success, problems during pytest setup, etc. - basic_checks.basic_checks(run_dunerc, caplog, print_test_name=False) + utility_functions.basic_checks(run_dunerc, caplog, print_test_name=False) def test_log_files(run_dunerc): @@ -278,3 +278,7 @@ def test_data_files(run_dunerc): print(f"\N{WHITE HEAVY CHECK MARK} All source IDs had total data size equal to expected") assert all_ok + + +def test_cleanup(run_dunerc): + utility_functions.remove_hdf5_files_if_requested(run_dunerc, this_test_requests_hdf5_file_removal=False)