diff options
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py index fcf7d0a717a..dc2e320123b 100644 --- a/java/config/TestUtil.py +++ b/java/config/TestUtil.py @@ -249,10 +249,12 @@ def ignorePid(pipe): continue break -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!" |