qa: test proc stderr isn't None before closing it

This commit is contained in:
Antoine Poinsot 2024-09-05 14:32:03 +02:00
parent ba553e9ddb
commit 7cce136562
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -360,7 +360,8 @@ class TailableProc(object):
self.logs_cond.notifyAll()
self.running = False
self.proc.stdout.close()
self.proc.stderr.close()
if self.proc.stderr is not None:
self.proc.stderr.close()
def is_in_log(self, regex, start=0):
"""Look for `regex` in the logs."""