forked from josch/mmdebstrap
coverage.py: strip off fractional seconds of time left
This commit is contained in:
parent
1b5d87c7cf
commit
86f616996d
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ def main():
|
||||||
if i > 0:
|
if i > 0:
|
||||||
currenttime = time.time()
|
currenttime = time.time()
|
||||||
timeleft = timedelta(
|
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)
|
print("time left: %s" % timeleft, file=sys.stderr)
|
||||||
with open("tests/" + name) as fin, open("shared/test.sh", "w") as fout:
|
with open("tests/" + name) as fin, open("shared/test.sh", "w") as fout:
|
||||||
|
|
Loading…
Reference in a new issue