diff options
author | Michi Henning <michi@zeroc.com> | 2004-07-06 03:44:47 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-07-06 03:44:47 +0000 |
commit | 5050f6f04878376e1ad19689804426e5298cc75e (patch) | |
tree | 1073954ab2062b2c9b069d6fdcfc1d915b3896c0 /cpp/config/IcePackAdmin.py | |
parent | Did a make depend. (diff) | |
download | ice-5050f6f04878376e1ad19689804426e5298cc75e.tar.bz2 ice-5050f6f04878376e1ad19689804426e5298cc75e.tar.xz ice-5050f6f04878376e1ad19689804426e5298cc75e.zip |
Changed test scripts to use unbuffered I/O so when we run the scripts from
allTests.py, we get to see the output as it is produced, not line by
line.
Diffstat (limited to 'cpp/config/IcePackAdmin.py')
-rw-r--r-- | cpp/config/IcePackAdmin.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cpp/config/IcePackAdmin.py b/cpp/config/IcePackAdmin.py index b78eb5735a6..592136a9bcd 100644 --- a/cpp/config/IcePackAdmin.py +++ b/cpp/config/IcePackAdmin.py @@ -68,7 +68,7 @@ def startIcePackRegistry(port, testdir): r' --IcePack.Registry.Trace.NodeRegistry=0' + \ r' --Ice.ProgramName=icepackregistry' - (stdin, icePackPipe) = os.popen4(command) + (stdin, icePackPipe) = os.popen4(command, "r", 0) TestUtil.getServerPid(icePackPipe) TestUtil.getAdapterReady(icePackPipe) TestUtil.getAdapterReady(icePackPipe) @@ -104,7 +104,7 @@ def startIcePackNode(testdir): r' --IcePack.Node.Trace.Server=0' + \ r' --IcePack.Node.PrintServersReady=node' - (stdin, icePackPipe) = os.popen4(command) + (stdin, icePackPipe) = os.popen4(command, "r", 0) TestUtil.getServerPid(icePackPipe) TestUtil.getAdapterReady(icePackPipe) TestUtil.waitServiceReady(icePackPipe, 'node') @@ -125,7 +125,7 @@ def shutdownIcePackRegistry(): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "shutdown" ' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: @@ -143,7 +143,7 @@ def shutdownIcePackNode(): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "node shutdown localnode" ' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: @@ -161,7 +161,7 @@ def addApplication(descriptor, options): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "application add \"' + descriptor + '\\" ' + options + ' \"' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: @@ -177,7 +177,7 @@ def removeApplication(name): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "application remove \"' + name + '\\" \"' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: @@ -195,7 +195,7 @@ def addServer(serverDescriptor, options): r' -e "server add ' + serverDescriptor + ' localnode ' + \ r' ' + options + '\"' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) TestUtil.printOutputFromPipe(icePackAdminPipe) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: @@ -212,7 +212,7 @@ def removeServer(name): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "server remove \"' + name + '\\" \"' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: TestUtil.killServers() @@ -227,7 +227,7 @@ def startServer(name): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "server start \"' + name + '\\""' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) icePackAdminStatus = icePackAdminPipe.close() if icePackAdminStatus: TestUtil.killServers() @@ -242,7 +242,7 @@ def listAdapters(): r' "--Ice.Default.Locator=IcePack/Locator:default -p ' + icePackPort + '" ' + \ r' -e "adapter list"' + " 2>&1" - icePackAdminPipe = os.popen(command) + icePackAdminPipe = os.popen(command, "r", 0) return icePackAdminPipe def cleanDbDir(path): |