coverage.py: print total runtime
This commit is contained in:
parent
84c53fc120
commit
c33f719278
1 changed files with 4 additions and 0 deletions
|
@ -446,6 +446,10 @@ def main():
|
|||
print("failed %d:" % len(failed), file=sys.stderr)
|
||||
for f in failed:
|
||||
print(f, file=sys.stderr)
|
||||
currenttime = time.time()
|
||||
walltime = timedelta(seconds=int(currenttime - starttime))
|
||||
print(f"total runtime: {walltime}", file=sys.stderr)
|
||||
if failed:
|
||||
exit(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue