diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-17 09:36:58 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-12-17 09:36:58 +0000 |
commit | ff92e76e780b33c64f2638086788c60282d962b2 (patch) | |
tree | 3529558727cafb686356b8e33268e6b55ac8e55a /src/integration-tests | |
parent | 19f450a975cf83aa553f8f20f969e7b3e800aadb (diff) |
if start fails, clean up and exit
Diffstat (limited to 'src/integration-tests')
-rwxr-xr-x | src/integration-tests/test_integration_bootstrap_and_connect.py.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect.py.in b/src/integration-tests/test_integration_bootstrap_and_connect.py.in index afc55ca40a..cb0359e1f7 100755 --- a/src/integration-tests/test_integration_bootstrap_and_connect.py.in +++ b/src/integration-tests/test_integration_bootstrap_and_connect.py.in @@ -144,8 +144,22 @@ def run (): server = Peer(test, './confs/c_bootstrap_server.conf'); client = Peer(test, './confs/c_no_nat_client.conf'); - assert (True == server.start()); - assert (True == client.start()); + if (True != server.start()): + print 'Failed to start server' + if (None != server): + server.stop () + if (None != server): + client.stop () + cleanup () + sys.exit(success) + if (True != client.start()): + print 'Failed to start client' + if (None != server): + server.stop () + if (None != server): + client.stop () + cleanup () + sys.exit(success) if ((client.started == True) and (server.started == True)): test.p ('Peers started, running check') |