separate stdout/stderr from lbcctl on tests

This commit is contained in:
Victor Shyba 2021-12-07 21:22:08 -03:00 committed by Lex Berezhny
parent 73ac42b786
commit 721834cea2

View file

@ -586,9 +586,11 @@ class LBCWalletNode:
loop = asyncio.get_event_loop()
asyncio.get_child_watcher().attach_loop(loop)
process = await asyncio.create_subprocess_exec(
*cmnd_args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
*cmnd_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
out, _ = await process.communicate()
out, err = await process.communicate()
if err:
log.warning(err)
result = out.decode().strip()
self.log.info(result)
if result.startswith('error code'):