summaryrefslogtreecommitdiff
path: root/java/config/TestUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r--java/config/TestUtil.py25
1 files changed, 20 insertions, 5 deletions
diff --git a/java/config/TestUtil.py b/java/config/TestUtil.py
index c87fe14a0eb..fb2537b8ca6 100644
--- a/java/config/TestUtil.py
+++ b/java/config/TestUtil.py
@@ -146,8 +146,13 @@ def clientServerTest(toplevel, name):
if not output:
break;
print output,
- serverPipe.close()
- clientPipe.close()
+
+ clientStatus = clientPipe.close()
+ serverStatus = serverPipe.close()
+
+ if clientStatus or serverStatus:
+ killServers()
+ sys.exit(1)
def mixedClientServerTest(toplevel, name):
@@ -179,8 +184,13 @@ def mixedClientServerTest(toplevel, name):
if not output:
break;
print output,
- serverPipe.close()
- clientPipe.close()
+
+ clientStatus = clientPipe.close()
+ serverStatus = serverPipe.close()
+
+ if clientStatus or serverStatus:
+ killServers()
+ sys.exit(1)
def collocatedTest(toplevel, name):
@@ -199,7 +209,12 @@ def collocatedTest(toplevel, name):
sys.exit(1)
print "ok"
print output
- collocatedPipe.close()
+
+ collocatedStatus = collocatedPipe.close()
+
+ if collocatedStatus:
+ killServers()
+ sys.exit(1)
def cleanDbDir(path):