summaryrefslogtreecommitdiff
path: root/cpp/config/TestUtil.py
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2002-07-17 20:55:08 +0000
committerDwayne Boone <dwayne@zeroc.com>2002-07-17 20:55:08 +0000
commit3e78a618a8085dba94e06a747be9a1f14b3db3fb (patch)
treee94d7d3d6fa92b3d494badedaa0e4a1c2310a196 /cpp/config/TestUtil.py
parentAdded .depend (diff)
downloadice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.tar.bz2
ice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.tar.xz
ice-3e78a618a8085dba94e06a747be9a1f14b3db3fb.zip
Mods for running IceBox services in python scripts
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r--cpp/config/TestUtil.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py
index 363873c16b4..8bbd35bbf4b 100644
--- a/cpp/config/TestUtil.py
+++ b/cpp/config/TestUtil.py
@@ -131,6 +131,19 @@ def getAdapterReady(serverPipe):
killServers()
sys.exit(1)
+def waitServiceReady(pipe, token):
+
+ while 1:
+
+ output = pipe.readline().strip()
+
+ if not output:
+ print "failed!"
+ sys.exit(1)
+
+ if output == token + " ready":
+ break
+
def clientServerTestWithOptions(toplevel, name, additionalServerOptions, additionalClientOptions):
testdir = os.path.join(toplevel, "test", name)