channel result decode

This commit is contained in:
Daan Hoogland 2021-02-09 10:10:23 +00:00
parent 7e817a5344
commit 182991c0ba
1 changed files with 2 additions and 2 deletions

View File

@ -244,14 +244,14 @@ class TestDeployVirtioSCSIVM(cloudstackTestCase):
b = chan.recv(10000)
if len(b) == 0:
break
stdout += b
stdout += b.decode()
stderr = ""
while True:
b = chan.recv_stderr(10000)
if len(b) == 0:
break
stderr += b
stderr += b.decode()
xstatus = chan.recv_exit_status()
chan.close()