Skip to content

Commit c94e540

Browse files
authored
Merge pull request #470 from DUNE-DAQ/kbiery/largeTR_testname_bugfix
Modified large_trigger_record_test.py to correctly compare the names …
2 parents 12d4d8a + 38987ae commit c94e540

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

integtest/large_trigger_record_test.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ def test_data_files(run_nanorc):
219219
local_event_count_tolerance = expected_event_count_tolerance
220220
fragment_check_list = [triggercandidate_frag_params]
221221
current_test = os.environ.get("PYTEST_CURRENT_TEST")
222-
match_obj = re.search(r".*\[(.+)-run_nanorc0\].*", current_test)
223-
if match_obj:
224-
current_test = match_obj.group(1)
225-
if current_test == "TRSize_125PercentOfMaxFileSize":
222+
# 30-Dec-2025, KAB: modified the following "if" statement to check if the desired
223+
# configuration name is contained in the current test name (instead of using an "if"
224+
# clause that tests if the first part of the current test name is *equal* to the config
225+
# name). This change is needed now because current test name has more information
226+
# in it, and a simple comparison no longer works.
227+
if "TRSize_125PercentOfMaxFileSize" in current_test:
226228
fragment_check_list.append(wibeth_frag_125pct_params)
227229
else:
228230
fragment_check_list.append(wibeth_frag_55pct_params)

0 commit comments

Comments
 (0)