diff options
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r-- | cpp/config/TestUtil.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py index 865df2b44bd..d5e2eacea3f 100644 --- a/cpp/config/TestUtil.py +++ b/cpp/config/TestUtil.py @@ -222,10 +222,12 @@ def ignorePid(pipe): killServers() sys.exit(1) -def getAdapterReady(pipe, createThread = True): +def getAdapterReady(pipe, createThread = True, count = 1): global serverThreads - output = pipe.readline().strip() + while count > 0: + output = pipe.readline().strip() + count = count - 1 if not output: print "failed!" |