diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-08-09 14:58:01 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-08-09 14:58:01 +0000 |
commit | 3f862089b748741b30e343d2051a4747a3bff2f2 (patch) | |
tree | 18d1dde1504e2d510a24f4d55aeee21bfea7c04f /cpp/config/IceGridAdmin.py | |
parent | fixing bug 1291 (diff) | |
download | ice-3f862089b748741b30e343d2051a4747a3bff2f2.tar.bz2 ice-3f862089b748741b30e343d2051a4747a3bff2f2.tar.xz ice-3f862089b748741b30e343d2051a4747a3bff2f2.zip |
Borland C++Builder port mass commit
Diffstat (limited to 'cpp/config/IceGridAdmin.py')
-rw-r--r-- | cpp/config/IceGridAdmin.py | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/cpp/config/IceGridAdmin.py b/cpp/config/IceGridAdmin.py index c207f6bad47..f445999de3a 100644 --- a/cpp/config/IceGridAdmin.py +++ b/cpp/config/IceGridAdmin.py @@ -11,6 +11,9 @@ import sys, os, TestUtil from threading import Thread +debug = 0 +#debug = 1 + for toplevel in [".", "..", "../..", "../../..", "../../../.."]: toplevel = os.path.normpath(toplevel) if os.path.exists(os.path.join(toplevel, "config", "TestUtil.py")): @@ -70,6 +73,9 @@ def startIceGridRegistry(testdir, dynamicRegistration = False): if dynamicRegistration: command += ' --IceGrid.Registry.DynamicRegistration' + if debug: + print command + (stdin, iceGridPipe) = os.popen4(command) TestUtil.getServerPid(iceGridPipe) @@ -97,6 +103,9 @@ def startIceGridNode(testdir): r' --IceGrid.Node.Data=' + dataDir + \ r' --IceGrid.Node.Name=localnode' + \ r' --IceGrid.Node.PropertiesOverride=' + overrideOptions + if debug: + print command + (stdin, iceGridPipe) = os.popen4(command) TestUtil.getServerPid(iceGridPipe) @@ -115,6 +124,9 @@ def iceGridAdmin(cmd, ignoreFailure = False): command = iceGridAdmin + TestUtil.clientOptions + \ r' --Ice.Default.Locator="IceGrid/Locator:default -p ' + iceGridPort + '" ' + \ r' -e "' + cmd + '" 2>&1' + if debug: + print command + iceGridAdminPipe = os.popen(command) @@ -156,7 +168,12 @@ def iceGridTest(name, application, additionalOptions = "", applicationOptions = print "ok" print "starting client...", - clientPipe = os.popen(client + TestUtil.clientOptions + " " + clientOptions + " 2>&1") + + command = client + TestUtil.clientOptions + " " + clientOptions + " 2>&1" + if debug: + print command + + clientPipe = os.popen(command) print "ok" TestUtil.printOutputFromPipe(clientPipe) @@ -209,7 +226,11 @@ def iceGridClientServerTest(name, additionalClientOptions, additionalServerOptio print "ok" print "starting client...", - clientPipe = os.popen(client + TestUtil.clientOptions + " " + clientOptions + " 2>&1") + command = client + TestUtil.clientOptions + " " + clientOptions + " 2>&1" + if debug: + print command + + clientPipe = os.popen(command) print "ok" TestUtil.printOutputFromPipe(clientPipe) |