diff options
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py index c3e79a79717..4ccc7328789 100644 --- a/java/config/TestUtil.py +++ b/java/config/TestUtil.py @@ -91,6 +91,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 printOutputFromPipe(pipe): while 1: line = pipe.readline() |