Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

macos-fix-xlog_rpl: somehow python subprocess.wait act broken

under Mac OS (unreasonable stalls), changing to the subprocess.communicate with the same
functonality
  • Loading branch information...
commit 962a7c3af77a53a1ee656a9016037e5ee42e4110 1 parent 8bf2a88
@pmwkaa pmwkaa authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 test/connector_c/xlog_rpl.test
View
10 test/connector_c/xlog_rpl.test
@@ -7,9 +7,8 @@ from lib.tarantool_box_server import TarantoolBoxServer
p = subprocess.Popen([os.path.join(builddir, "test/connector_c/xlog"),
os.path.join(builddir, "test/connector_c/connector.xlog")],
stdout=subprocess.PIPE)
-p.wait()
-for line in p.stdout.readlines():
- sys.stdout.write(line)
+o,e = p.communicate()
+sys.stdout.write(o)
server.stop()
server.deploy("connector_c/cfg/master.cfg")
@@ -25,9 +24,8 @@ print ""
p = subprocess.Popen([os.path.join(builddir, "test/connector_c/rpl"),
"127.0.0.1", "33016", "1200"],
stdout=subprocess.PIPE)
-p.wait()
-for line in p.stdout.readlines():
- sys.stdout.write(line)
+o,e = p.communicate()
+sys.stdout.write(o)
server.stop()
server.deploy()

0 comments on commit 962a7c3

Please sign in to comment.
Something went wrong with that request. Please try again.