coverage.py: strip off fractional seconds of time left

This commit is contained in:
Johannes Schauer Marin Rodrigues 2022-05-29 09:32:58 +02:00
parent 1b5d87c7cf
commit 86f616996d
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -185,7 +185,7 @@ def main():
if i > 0:
currenttime = time.time()
timeleft = timedelta(
seconds=(len(tests) - i) * (currenttime - starttime) / i
seconds=int((len(tests) - i) * (currenttime - starttime) / i)
)
print("time left: %s" % timeleft, file=sys.stderr)
with open("tests/" + name) as fin, open("shared/test.sh", "w") as fout: