fix skipLinesUntil() in non text mode

This commit is contained in:
Bastian Schroll 2019-10-18 21:10:00 +02:00
parent 8a948597d4
commit 23aa2c7680

View file

@ -107,6 +107,8 @@ class ProcessManager:
@param matchText: string to search for in output
"""
logging.debug("skip lines till %s from output", matchText)
if not self._textMode:
matchText = bytes(matchText, "utf-8")
while matchText not in self.readline():
pass