coverage.py: print total runtime

This commit is contained in:
Johannes Schauer Marin Rodrigues 2023-10-23 11:43:32 +02:00
parent 84c53fc120
commit c33f719278
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -446,6 +446,10 @@ def main():
print("failed %d:" % len(failed), file=sys.stderr) print("failed %d:" % len(failed), file=sys.stderr)
for f in failed: for f in failed:
print(f, file=sys.stderr) 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) exit(1)