summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-07-01 10:11:20 +0200
committerGerd Hoffmann <kraxel@redhat.com>2024-07-01 10:11:20 +0200
commit35748959a05fa1afa527e9ab6cf46ec79d23fda6 (patch)
tree6f9a64f60143302ee79ab934e5708d38f59a4baa
parent6f23410d42f9404476dc1b2006d4a39c6c6b8476 (diff)
downloadipxe-tests-35748959a05fa1afa527e9ab6cf46ec79d23fda6.tar.gz
tweak logging
-rw-r--r--test-ipxe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-ipxe.py b/test-ipxe.py
index 1b3b9f1..8ea7d04 100644
--- a/test-ipxe.py
+++ b/test-ipxe.py
@@ -27,14 +27,14 @@ class test_ipxe(unittest.TestCase):
data = stream.recv(128)
if type(data) is int and data == -2:
continue
- if verbose:
- print(data)
log += data
if substr in log:
secs = time.time() - start
print(f'{substr.decode()} ({secs:.1f}s) ... ', end = '', flush = True)
return
time.sleep(0.01)
+ if verbose:
+ print(log.decode())
self.fail(f'not found: {substr}')
def do_ipxe(self, mode):