From: Masashi Honma Date: Fri, 8 Feb 2019 22:51:10 +0000 (+0900) Subject: tests: Explicitly flush stdin for python3 X-Git-Tag: hostap_2_8~401 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d3e2edbd292a13e0ff0ae2b43851f5138fc1da;p=thirdparty%2Fhostap.git tests: Explicitly flush stdin for python3 Without this flush(), test does not run. Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py index 367973681..d2b0def97 100755 --- a/tests/hwsim/vm/parallel-vm.py +++ b/tests/hwsim/vm/parallel-vm.py @@ -214,6 +214,7 @@ def show_progress(scr): else: name = tests.pop(0) vm[i]['proc'].stdin.write(name.encode() + b'\n') + vm[i]['proc'].stdin.flush() scr.addstr(name) logger.debug("VM[%d] start test %s" % (i, name)) @@ -270,11 +271,13 @@ def show_progress(scr): updated = True if not rerun_tests: vm[i]['proc'].stdin.write(b'\n') + vm[i]['proc'].stdin.flush() scr.addstr("shutting down") logger.info("VM[%d] shutting down" % i) else: name = rerun_tests.pop(0) vm[i]['proc'].stdin.write(name.encode() + b'\n') + vm[i]['proc'].stdin.flush() scr.addstr(name + "(*)") logger.debug("VM[%d] start test %s (*)" % (i, name))