[PATCH v2 3/4] tests: Encode VM input for python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx>
---
 tests/hwsim/vm/parallel-vm.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py
index 3ab03c90a..367973681 100755
--- a/tests/hwsim/vm/parallel-vm.py
+++ b/tests/hwsim/vm/parallel-vm.py
@@ -213,7 +213,7 @@ def show_progress(scr):
                     continue
                 else:
                     name = tests.pop(0)
-                    vm[i]['proc'].stdin.write(name + '\n')
+                    vm[i]['proc'].stdin.write(name.encode() + b'\n')
                     scr.addstr(name)
                     logger.debug("VM[%d] start test %s" % (i, name))
 
@@ -269,12 +269,12 @@ def show_progress(scr):
                 scr.clrtoeol()
                 updated = True
                 if not rerun_tests:
-                    vm[i]['proc'].stdin.write('\n')
+                    vm[i]['proc'].stdin.write(b'\n')
                     scr.addstr("shutting down")
                     logger.info("VM[%d] shutting down" % i)
                 else:
                     name = rerun_tests.pop(0)
-                    vm[i]['proc'].stdin.write(name + '\n')
+                    vm[i]['proc'].stdin.write(name.encode() + b'\n')
                     scr.addstr(name + "(*)")
                     logger.debug("VM[%d] start test %s (*)" % (i, name))
 
-- 
2.17.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux