Skip to content

Commit 1238477

Browse files
authored
Merge pull request #323 from DUNE-DAQ/kbiery/sfqt_overall_runtime_check
Modified the small_footprint_quick_test to check if the overall DAQ session run time is getting longer...
2 parents a4bfbe4 + 94343f4 commit 1238477

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

integtest/small_footprint_quick_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ def test_dunerc_success(run_dunerc, caplog):
100100
# checks for run control success, problems during pytest setup, etc.
101101
basic_checks.basic_checks(run_dunerc, caplog, print_test_name=False)
102102

103+
expected_max_time_sec = 65
104+
if run_dunerc.daq_session_overall_time > expected_max_time_sec:
105+
fail_msg = f"The run control session took longer than expected. The overall run time was {round(run_dunerc.daq_session_overall_time,1)} sec, and the typical run time is less than {expected_max_time_sec} sec. Check whether one or more transitions are now taking longer to complete."
106+
pytest.fail(fail_msg, pytrace=False)
107+
else:
108+
run_dunerc.verbosity_helper.lvl_print(IntegtestVerbosityLevels.drunc_transitions,
109+
f"\N{WHITE HEAVY CHECK MARK} The run control session took the expected amount of time (<={expected_max_time_sec} sec)")
110+
103111

104112
def test_log_files(run_dunerc):
105113
if check_for_logfile_errors:

0 commit comments

Comments
 (0)