diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-27 12:18:17 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-27 12:18:17 +0000 |
commit | 6c949025e46ac1f54c11479bdf483acb38b93c04 (patch) | |
tree | 139f3be65f78b51a7c00a933ae4272513f0bab84 /cpp/config/TestUtil.py | |
parent | Renaming Ice.Trace.Security to IceSSL.Trace.Security Cleaning up IceSSL (diff) | |
download | ice-6c949025e46ac1f54c11479bdf483acb38b93c04.tar.bz2 ice-6c949025e46ac1f54c11479bdf483acb38b93c04.tar.xz ice-6c949025e46ac1f54c11479bdf483acb38b93c04.zip |
python test scripts cleanup
Diffstat (limited to 'cpp/config/TestUtil.py')
-rw-r--r-- | cpp/config/TestUtil.py | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/cpp/config/TestUtil.py b/cpp/config/TestUtil.py index 82e0e626d53..8410290b0a8 100644 --- a/cpp/config/TestUtil.py +++ b/cpp/config/TestUtil.py @@ -59,7 +59,6 @@ clientServerOptions = commonServerOptions + clientServerProtocol + defaultHost collocatedOptions = clientServerProtocol serverPids = [] - def killServers(): global serverPids @@ -120,17 +119,9 @@ def clientServerTest(toplevel, name): print "starting client...", clientPipe = os.popen(client + updatedClientOptions) - output = clientPipe.readline() - if not output: - print "failed!" - killServers() - sys.exit(1) print "ok" - print output, - while 1: - output = clientPipe.readline() - if not output: - break; + + for output in clientPipe.xreadlines(): print output, clientStatus = clientPipe.close() @@ -159,17 +150,9 @@ def mixedClientServerTest(toplevel, name): clientPipe = os.popen(client + updatedClientOptions) getServerPid(clientPipe) getAdapterReady(clientPipe) - output = clientPipe.readline() - if not output: - print "failed!" - killServers() - sys.exit(1) print "ok" - print output, - while 1: - output = clientPipe.readline() - if not output: - break; + + for output in clientPipe.xreadlines(): print output, clientStatus = clientPipe.close() @@ -188,12 +171,10 @@ def collocatedTest(toplevel, name): print "starting collocated...", collocatedPipe = os.popen(collocated + updatedCollocatedOptions) - output = collocatedPipe.read().strip() - if not output: - print "failed!" - sys.exit(1) print "ok" - print output + + for output in collocatedPipe.xreadlines(): + print output, collocatedStatus = collocatedPipe.close() |