tests: Encode VM input for python3
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
689a956049
commit
3069be8fe3
1 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ def show_progress(scr):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
name = tests.pop(0)
|
name = tests.pop(0)
|
||||||
vm[i]['proc'].stdin.write(name + '\n')
|
vm[i]['proc'].stdin.write(name.encode() + b'\n')
|
||||||
scr.addstr(name)
|
scr.addstr(name)
|
||||||
logger.debug("VM[%d] start test %s" % (i, name))
|
logger.debug("VM[%d] start test %s" % (i, name))
|
||||||
|
|
||||||
|
@ -269,12 +269,12 @@ def show_progress(scr):
|
||||||
scr.clrtoeol()
|
scr.clrtoeol()
|
||||||
updated = True
|
updated = True
|
||||||
if not rerun_tests:
|
if not rerun_tests:
|
||||||
vm[i]['proc'].stdin.write('\n')
|
vm[i]['proc'].stdin.write(b'\n')
|
||||||
scr.addstr("shutting down")
|
scr.addstr("shutting down")
|
||||||
logger.info("VM[%d] shutting down" % i)
|
logger.info("VM[%d] shutting down" % i)
|
||||||
else:
|
else:
|
||||||
name = rerun_tests.pop(0)
|
name = rerun_tests.pop(0)
|
||||||
vm[i]['proc'].stdin.write(name + '\n')
|
vm[i]['proc'].stdin.write(name.encode() + b'\n')
|
||||||
scr.addstr(name + "(*)")
|
scr.addstr(name + "(*)")
|
||||||
logger.debug("VM[%d] start test %s (*)" % (i, name))
|
logger.debug("VM[%d] start test %s (*)" % (i, name))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue