diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-08 09:47:11 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-08 09:47:11 +0000 |
commit | c53a8500e7b693a2edc785df19698720314f3dfb (patch) | |
tree | 70b2fd135a418a42ae1f0696e76a668907913967 /src/integration-tests | |
parent | 5a889b04b4975e880fe5fd815b7c39f6e8dd9855 (diff) | |
download | gnunet-c53a8500e7b693a2edc785df19698720314f3dfb.tar.gz gnunet-c53a8500e7b693a2edc785df19698720314f3dfb.zip |
fix
Diffstat (limited to 'src/integration-tests')
-rwxr-xr-x | src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in index 3ca0aea86..49e425932 100755 --- a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in +++ b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in | |||
@@ -57,8 +57,26 @@ else: | |||
57 | tmp = "/tmp" | 57 | tmp = "/tmp" |
58 | 58 | ||
59 | def cleanup (): | 59 | def cleanup (): |
60 | shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True) | 60 | retries = 10 |
61 | shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True) | 61 | path = os.path.join (tmp, "c_bootstrap_server") |
62 | test.p ("Removing " + path) | ||
63 | while ((os.path.exists(path)) and (retries > 0)): | ||
64 | shutil.rmtree ((path), False) | ||
65 | time.sleep (1) | ||
66 | retries -= 1 | ||
67 | if (os.path.exists(path)): | ||
68 | test.p ("Failed to remove " + path) | ||
69 | |||
70 | |||
71 | retries = 10 | ||
72 | path = os.path.join (tmp, "c_no_nat_client") | ||
73 | test.p ("Removing " + path) | ||
74 | while ((os.path.exists(path)) and (retries > 0)): | ||
75 | shutil.rmtree ((path), False) | ||
76 | time.sleep (1) | ||
77 | retries -= 1 | ||
78 | if (os.path.exists(path)): | ||
79 | test.p ("Failed to remove " + path) | ||
62 | 80 | ||
63 | def success_server_stop_cont (check): | 81 | def success_server_stop_cont (check): |
64 | global success | 82 | global success |