diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-05-06 01:09:57 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-05-06 01:09:57 +0000 |
commit | 7b707395300fcf7615fc0d38e7cf4f7fe4d0d7d4 (patch) | |
tree | 68f58388b3971cd6238d220d0dba0a99f0d4cbc4 /java/config/TestUtil.py | |
parent | fix in OA::deactivate() (diff) | |
download | ice-7b707395300fcf7615fc0d38e7cf4f7fe4d0d7d4.tar.bz2 ice-7b707395300fcf7615fc0d38e7cf4f7fe4d0d7d4.tar.xz ice-7b707395300fcf7615fc0d38e7cf4f7fe4d0d7d4.zip |
Switched back to popen (from popen4)
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py index 0423c4ca71a..a030156d369 100644 --- a/java/config/TestUtil.py +++ b/java/config/TestUtil.py @@ -166,23 +166,21 @@ def clientServerTestWithOptions(additionalServerOptions, additionalClientOptions client = "java -ea Client --Ice.ProgramName=Client " print "starting server...", - (serverPipeIn, serverPipe) = os.popen4(server + serverOptions + additionalServerOptions) + serverPipe = os.popen(server + serverOptions + additionalServerOptions + " 2>&1") getAdapterReady(serverPipe) print "ok" print "starting client...", - (clientPipeIn, clientPipe) = os.popen4(client + clientOptions + additionalClientOptions) + clientPipe = os.popen(client + clientOptions + additionalClientOptions + " 2>&1") print "ok" #printOutputFromPipe(serverPipe) printOutputFromPipe(clientPipe) - clientInStatus = clientPipeIn.close() clientStatus = clientPipe.close() - serverInStatus = serverPipeIn.close() serverStatus = serverPipe.close() - if clientInStatus or clientStatus or serverInStatus or serverStatus: + if clientStatus or serverStatus: killServers() sys.exit(1) @@ -197,25 +195,23 @@ def clientServerTestWithClasspath(serverClasspath, clientClasspath): print "starting server...", os.environ["CLASSPATH"] = scp - (serverPipeIn, serverPipe) = os.popen4(server + serverOptions) + serverPipe = os.popen(server + serverOptions + " 2>&1") os.environ["CLASSPATH"] = classpath getAdapterReady(serverPipe) print "ok" print "starting client...", os.environ["CLASSPATH"] = ccp - (clientPipeIn, clientPipe) = os.popen4(client + clientOptions) + clientPipe = os.popen(client + clientOptions + " 2>&1") os.environ["CLASSPATH"] = classpath print "ok" printOutputFromPipe(clientPipe) - clientInStatus = clientPipeIn.close() clientStatus = clientPipe.close() - serverInStatus = serverPipeIn.close() serverStatus = serverPipe.close() - if clientInStatus or clientStatus or serverInStatus or serverStatus: + if clientStatus or serverStatus: killServers() sys.exit(1) @@ -230,22 +226,20 @@ def mixedClientServerTestWithOptions(additionalServerOptions, additionalClientOp client = "java -ea Client --Ice.ProgramName=Client " print "starting server...", - (serverPipeIn, serverPipe) = os.popen4(server + serverOptions + additionalServerOptions) + serverPipe = os.popen(server + serverOptions + additionalServerOptions + " 2>&1") getAdapterReady(serverPipe) print "ok" print "starting client...", - (clientPipeIn, clientPipe) = os.popen4(client + clientOptions + additionalClientOptions) + clientPipe = os.popen(client + clientOptions + additionalClientOptions + " 2>&1") print "ok" printOutputFromPipe(clientPipe) - clientInStatus = clientPipeIn.close() clientStatus = clientPipe.close() - serverInStatus = serverPipeIn.close() serverStatus = serverPipe.close() - if clientInStatus or clientStatus or serverInStatus or serverStatus: + if clientStatus or serverStatus: killServers() sys.exit(1) @@ -258,15 +252,14 @@ def collocatedTestWithOptions(additionalOptions): collocated = "java -ea Collocated --Ice.ProgramName=Collocated " print "starting collocated...", - (collocatedPipeIn, collocatedPipe) = os.popen4(collocated + collocatedOptions + additionalOptions) + collocatedPipe = os.popen(collocated + collocatedOptions + additionalOptions + " 2>&1") print "ok" printOutputFromPipe(collocatedPipe) - collocatedInStatus = collocatedPipeIn.close() collocatedStatus = collocatedPipe.close() - if collocatedInStatus or collocatedStatus: + if collocatedStatus: killServers() sys.exit(1) |