qa: test proc stderr isn't None before closing it
This commit is contained in:
parent
ba553e9ddb
commit
7cce136562
@ -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."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user