diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index c1d07d9b41..3d60433cae 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -376,14 +376,14 @@ class QemuRunner: | |||
376 | 376 | ||
377 | data = '' | 377 | data = '' |
378 | status = 0 | 378 | status = 0 |
379 | self.server_socket.sendall(command) | 379 | self.server_socket.sendall(command.encode('utf-8')) |
380 | keepreading = True | 380 | keepreading = True |
381 | while keepreading: | 381 | while keepreading: |
382 | sread, _, _ = select.select([self.server_socket],[],[],5) | 382 | sread, _, _ = select.select([self.server_socket],[],[],5) |
383 | if sread: | 383 | if sread: |
384 | answer = self.server_socket.recv(1024) | 384 | answer = self.server_socket.recv(1024) |
385 | if answer: | 385 | if answer: |
386 | data += answer | 386 | data += answer.decode('utf-8') |
387 | # Search the prompt to stop | 387 | # Search the prompt to stop |
388 | if re.search("[a-zA-Z0-9]+@[a-zA-Z0-9\-]+:~#", data): | 388 | if re.search("[a-zA-Z0-9]+@[a-zA-Z0-9\-]+:~#", data): |
389 | keepreading = False | 389 | keepreading = False |