From 721834cea218e6a24ec0da1c082867a7e51a1cee Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 7 Dec 2021 21:22:08 -0300 Subject: [PATCH] separate stdout/stderr from lbcctl on tests --- lbry/wallet/orchstr8/node.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/orchstr8/node.py b/lbry/wallet/orchstr8/node.py index 253980354..fb149a120 100644 --- a/lbry/wallet/orchstr8/node.py +++ b/lbry/wallet/orchstr8/node.py @@ -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'):