From d0a6fee9b208fcf6bef27bb4429c1b2aedd6fd3f Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 8 Dec 2021 18:00:50 -0700 Subject: [PATCH] lf_check.py : full test duration broken out to h,m,s from just seconds Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index d7d88ce3..8d0ca2c9 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -1171,8 +1171,10 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url) self.logger.info("Suite End Time: {suite_time}".format( suite_time=self.suite_end_time)) suite_time_delta = suite_end_time - suite_start_time - self.suite_duration = "{day}d {seconds}s {msec} ms".format( - day=suite_time_delta.days, seconds=suite_time_delta.seconds, msec=suite_time_delta.microseconds) + minutes, sec = divmod(suite_time_delta.seconds, 60) + hour, minutes = divmod(minutes, 60) + self.suite_duration = "{day}d {hour}h {minutes}m {sec}s {msec} ms".format( + day=suite_time_delta.days, hour=hour, minutes=minutes, sec=sec, msec=suite_time_delta.microseconds) self.logger.info("Suite Duration: {suite_duration}".format( suite_duration=self.suite_duration)) self.finish_html_results()