From 3e78a618a8085dba94e06a747be9a1f14b3db3fb Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Wed, 17 Jul 2002 20:55:08 +0000 Subject: Mods for running IceBox services in python scripts --- cpp/config/TestUtil.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpp/config/TestUtil.py') 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) -- cgit v1.2.3