get time elapsed from log files
This commit is contained in:
+4
-2
@@ -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("\\/"))
|
||||
|
||||
Reference in New Issue
Block a user