Skip to content

Commit

Permalink
reformat total log msg by passant
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Jul 16, 2024
1 parent 0e3598b commit a7ebc58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocotb/caravel_cocotb/scripts/verify_cocotb/RunRegression.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def test_run_function(self, test):
self.update_run_log()
self.update_live_table()
if self.args.progress:
self.logger.info(f"Total: ({test.passed_count})passed ({test.failed_count})failed ({test.unknown_count})unknown ({('%.10s' % (datetime.now() - self.total_start_time))})elapsed time")
self.logger.info(f"Total: {f'passed ({test.passed_count})':12} {f'failed ({test.failed_count})':12} {f'unknown ({test.unknown_count})':12} elapsed time ({('%.10s' % (datetime.now() - self.total_start_time))})")

def update_run_log(self):
file_name = f"{self.paths.SIM_PATH}/{self.args.tag}/runs.log"
Expand All @@ -242,7 +242,7 @@ def update_run_log(self):
f"{test.full_name:<{name_size}} {test.status:<10} {test.start_time:<15} {test.endtime:<15} {test.duration:<13} {test.passed:<8} {test.seed:<10}\n"
)
f.write(
f"\n\nTotal: ({test.passed_count})passed ({test.failed_count})failed ({test.unknown_count})unknown ({('%.10s' % (datetime.now() - self.total_start_time))})elapsed time"
f"\n\nTotal: {f'passed ({test.passed_count})':12} {f'failed ({test.failed_count})':12} {f'unknown ({test.unknown_count})':12} elapsed time ({('%.10s' % (datetime.now() - self.total_start_time))})"
)
f.close()

Expand Down

0 comments on commit a7ebc58

Please sign in to comment.