summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/faultTolerance/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/faultTolerance/run.py')
-rwxr-xr-xcpp/test/Ice/faultTolerance/run.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpp/test/Ice/faultTolerance/run.py b/cpp/test/Ice/faultTolerance/run.py
index 1357fe35c67..b8cb736ed6a 100755
--- a/cpp/test/Ice/faultTolerance/run.py
+++ b/cpp/test/Ice/faultTolerance/run.py
@@ -27,9 +27,10 @@ client = os.path.normpath(testdir + "/client")
num = 8
base = 12340
+updatedServerOptions = TestUtil.serverOptions.replace("TOPLEVELDIR", toplevel)
+updatedClientOptions = TestUtil.clientOptions.replace("TOPLEVELDIR", toplevel)
+
serverPipes = { }
-updatedServerOptions = TestUtil.serverOptions
-updatedServerOptions = updatedServerOptions.replace("TOPLEVELDIR", toplevel)
for i in range(0, num):
print "starting server #%d..." % (i + 1),
serverPipes[i] = os.popen(server + updatedServerOptions + " %d" % (base + i))
@@ -37,14 +38,11 @@ for i in range(0, num):
TestUtil.getAdapterReady(serverPipes[i])
print "ok"
-updatedClientOptions = TestUtil.clientOptions
-updatedClientOptions = updatedClientOptions.replace("TOPLEVELDIR", toplevel)
-
ports = ""
for i in range(0, num):
ports = "%s %d" % (ports, base + i)
print "starting client...",
-clientPipe = os.popen(client + " " + updatedClientOptions + " " + ports)
+clientPipe = os.popen(client + updatedClientOptions + " " + ports)
output = clientPipe.readline()
if not output:
print "failed!"