From e2ed77f179bbecef03146458d2a39d5652abf5b9 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 7 May 2023 22:31:55 +0200 Subject: test/lib: log process readiness only once --- test/lib/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/lib/process.py b/test/lib/process.py index 38c9c1a..cac7fbd 100644 --- a/test/lib/process.py +++ b/test/lib/process.py @@ -30,7 +30,7 @@ class LoggingThread(Thread): for line in pipe: line = line.removesuffix('\n') logging.info('%s: %s', self.process.log_id, line) - if self.process.cmd_line.log_line_means_ready(line): + if not self.ready_event.is_set() and self.process.cmd_line.log_line_means_ready(line): logging.info('Process %s is ready', self.process.log_id) self.ready_event.set() -- cgit v1.2.3