diff options
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r-- | cpp/config/TestUtil.py | 13 |
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) |