diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-17 20:14:21 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-17 20:14:21 +0000 |
commit | 3b775eb1d9e986f6cb6136ea36089d19988d18b2 (patch) | |
tree | 7a5c0e1340fd6188993e6d1ad8e72ae6beaf2036 /java/config/TestUtil.py | |
parent | bug fix (diff) | |
download | ice-3b775eb1d9e986f6cb6136ea36089d19988d18b2.tar.bz2 ice-3b775eb1d9e986f6cb6136ea36089d19988d18b2.tar.xz ice-3b775eb1d9e986f6cb6136ea36089d19988d18b2.zip |
test script now halt in case of an error
Diffstat (limited to 'java/config/TestUtil.py')
-rw-r--r-- | java/config/TestUtil.py | 25 |
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): |