diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-07 22:31:55 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-07 22:31:55 +0200 |
commit | e2ed77f179bbecef03146458d2a39d5652abf5b9 (patch) | |
tree | 992b249c531d532a55a95cd9fd7730a01bf18387 /test/lib | |
parent | test: refactoring (diff) | |
download | cimple-e2ed77f179bbecef03146458d2a39d5652abf5b9.tar.gz cimple-e2ed77f179bbecef03146458d2a39d5652abf5b9.zip |
test/lib: log process readiness only once
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |