Skip to content

Commit

Permalink
Minor patch to flush stdout.
Browse files Browse the repository at this point in the history
This helps track progress in
CI/CD testing.
  • Loading branch information
pyth0n1c committed Sep 21, 2023
1 parent b8648be commit 8ec13ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from ssl import SSLEOFError, SSLZeroReturnError
import time
import uuid

from sys import stdout

from tempfile import TemporaryDirectory, mktemp
import pathlib
Expand Down Expand Up @@ -102,7 +102,9 @@ def setup(self):
bar_format=f"{self.get_name()} starting",
miniters=0,
mininterval=0,
file=stdout
)

self.start_time = time.time()
try:
for func, msg in [
Expand Down Expand Up @@ -505,7 +507,7 @@ def execute_test(
set_pbar=False,
)
)

stdout.flush()
if test.result is not None:
test.result.duration = round(time.time() - start_time, 2)

Expand Down

0 comments on commit 8ec13ab

Please sign in to comment.