Skip to content
Merged
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
5 changes: 5 additions & 0 deletions src/integrationtest/integrationtest_drunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ class RunResult:
"++++++++++ DRUNC Run BEGIN ++++++++++", flush=True
) # Apparently need to flush before subprocess.run
result = RunResult()
time_before = time.time()
result.completed_process = subprocess.run(
[nanorc]
+ nanorc_option_strings
Expand All @@ -441,6 +442,7 @@ class RunResult:
+ command_list,
cwd=run_dir,
)
time_after = time.time()

if connsvc_obj is not None:
time.sleep(1)
Expand Down Expand Up @@ -480,5 +482,8 @@ class RunResult:
)
result.log_files = list(run_dir.glob("log_*.txt")) + list(run_dir.glob("log_*.log"))
result.opmon_files = list(run_dir.glob(f"info*{result.session_name if result.session_name else result.session}*.json"))
# 10-Dec-2025, KAB: added the DAQ session overall time so that we can use this
# information in fine-tuning the allowed ranges in time-based checking of test results.
result.daq_session_overall_time = time_after - time_before
print("---------- DRUNC Run END ----------", flush=True)
yield result