lightningd: test for weird aliases.

Test has inverted conditions to make it "pass", we fix as we go.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-03-26 10:38:11 +10:30
parent 8c838ebd76
commit a077c3defb
2 changed files with 32 additions and 2 deletions

View File

@@ -116,10 +116,10 @@ class TailableProc(object):
for l in self.logs[start:]:
if ex.search(l):
logging.debug("Found '%s' in logs", regex)
return True
return l
logging.debug("Did not find '%s' in logs", regex)
return False
return None
def wait_for_logs(self, regexs, timeout=60):
"""Look for `regexs` in the logs.