Skip to content

Commit d03575a

Browse files
committed
add rough elapsed seconds and error counts to robot attempt output
1 parent 8d6da20 commit d03575a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/atest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import platform
66
import shutil
77
import sys
8+
import time
89
from pathlib import Path
910

1011
import robot
@@ -95,7 +96,9 @@ def attempt_atest_with_retries(*extra_args):
9596
while error_count != 0 and attempt <= retries:
9697
attempt += 1
9798
print("attempt {} of {}...".format(attempt, retries + 1))
99+
start_time = time.time()
98100
error_count = atest(attempt=attempt, extra_args=list(extra_args))
101+
print(error_count, "errors in", int(time.time() - start_time), "seconds")
99102

100103
return error_count
101104

0 commit comments

Comments
 (0)