diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2008-04-08 12:48:05 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2008-04-08 12:48:05 -0230 |
commit | 491b649ce3048b1458438f4b16e8c006028ef76a (patch) | |
tree | b4d38f7aa73a4212ff9c600460705861c22b721a /cpp/test/Ice/faultTolerance/run.py | |
parent | Bug 2982 (diff) | |
download | ice-491b649ce3048b1458438f4b16e8c006028ef76a.tar.bz2 ice-491b649ce3048b1458438f4b16e8c006028ef76a.tar.xz ice-491b649ce3048b1458438f4b16e8c006028ef76a.zip |
Bug 2973 - debug mode support for faulttolerance test
Diffstat (limited to 'cpp/test/Ice/faultTolerance/run.py')
-rwxr-xr-x | cpp/test/Ice/faultTolerance/run.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/test/Ice/faultTolerance/run.py b/cpp/test/Ice/faultTolerance/run.py index 0e091b083ec..dc18f80256d 100755 --- a/cpp/test/Ice/faultTolerance/run.py +++ b/cpp/test/Ice/faultTolerance/run.py @@ -33,7 +33,10 @@ base = 12340 for i in range(0, num): print "starting server #%d..." % (i + 1), - serverPipe = os.popen(TestUtil.getCommandLine(server, TestUtil.DriverConfig("server")) + " %d" % (base + i) + " 2>&1") + commandLine = TestUtil.getCommandLine(server, TestUtil.DriverConfig("server")) + " %d" % (base + i) + if TestUtil.isDebug(): + print "(" + commandLine + ")", + serverPipe = os.popen(commandLine + " 2>&1") TestUtil.getServerPid(serverPipe) TestUtil.getAdapterReady(serverPipe) print "ok" @@ -43,7 +46,10 @@ for i in range(0, num): ports = "%s %d" % (ports, base + i) print "starting client...", -clientPipe = os.popen(TestUtil.getCommandLine(client, TestUtil.DriverConfig("client")) + " " + ports + " 2>&1") +commandLine = TestUtil.getCommandLine(client, TestUtil.DriverConfig("client")) + " " + ports +if TestUtil.isDebug(): + print "(" + commandLine + ")", +clientPipe = os.popen(commandLine + " 2>&1") print "ok" TestUtil.printOutputFromPipe(clientPipe) |