get time elapsed from log files

This commit is contained in:
2026-06-03 17:10:59 -04:00
parent 24cf346a62
commit 8a11acfcfd
3 changed files with 49 additions and 38 deletions
+4 -2
View File
@@ -44,8 +44,10 @@ class ResultsDirEventHandler(FileSystemEventHandler):
)
def _mark_completed_from_file(self, file_path):
# measurement.db arriving after directory creation should update that single test.
if os.path.basename(file_path).lower() != "measurement.db":
# New measurement/log files arriving after directory creation should update that single test.
filename = os.path.basename(file_path).lower()
is_duration_log = filename.endswith(".log") or filename.endswith(".txt") or "log" in filename
if filename != "measurement.db" and not is_duration_log:
return
parent_dir = os.path.dirname(file_path.rstrip("\\/"))