diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-08-17 08:57:27 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2017-08-17 16:44:19 +0800 |
commit | 906056bb4e594e3c0a46cf11657b3561583699b4 (patch) | |
tree | aaef456fb1175721c55dd811b1f8dc05be288e15 /tests/utils.py | |
parent | d540d3046d2a65ab8c4803c0a03c964558e05f44 (diff) |
fix some bugs in monitor
1.send bytes data to the socket
see https://docs.python.org/3/library/socket.html
2.fix a endless loop
Change-Id: I880e713266347d8836cec45ebf9a500bb7c813f4
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py index f57cd266..41e22353 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -56,7 +56,7 @@ class SSHClient(object): ret = stdout.channel.recv_exit_status() output = list() for line in stdout.read().splitlines(): - output.append(line) + output.append(line.decode('utf-8')) if ret: if self.log: self.log.debug("*** FAILED to run command %s (%s)" % (command, ret)) |