diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-08 11:17:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-04-08 11:17:59 +0000 |
commit | 764487aa772a027fe78a72f8fa0088db98a89f01 (patch) | |
tree | ea708ed0ff33c607990f9cf29ed8cd2e1ba9cd89 /src/integration-tests | |
parent | 5a7ef28c08d6838a3eea0fb314fdacccbbbeb4c6 (diff) | |
download | gnunet-764487aa772a027fe78a72f8fa0088db98a89f01.tar.gz gnunet-764487aa772a027fe78a72f8fa0088db98a89f01.zip |
change
Diffstat (limited to 'src/integration-tests')
-rwxr-xr-x | src/integration-tests/test_integration_clique.py.in | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/src/integration-tests/test_integration_clique.py.in b/src/integration-tests/test_integration_clique.py.in index 6c7a5d770..eb606c5d9 100755 --- a/src/integration-tests/test_integration_clique.py.in +++ b/src/integration-tests/test_integration_clique.py.in | |||
@@ -49,9 +49,33 @@ check_timeout = 180 | |||
49 | 49 | ||
50 | 50 | ||
51 | def cleanup (): | 51 | def cleanup (): |
52 | shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True) | 52 | retries = 10 |
53 | shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True) | 53 | path = os.path.join (tmp, "c_bootstrap_server") |
54 | shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True) | 54 | test.p ("Removing " + path) |
55 | while ((os.path.exists(path)) and (retries > 0)): | ||
56 | shutil.rmtree ((path), False) | ||
57 | time.sleep (1) | ||
58 | retries -= 1 | ||
59 | if (os.path.exists(path)): | ||
60 | test.p ("Failed to remove " + path) | ||
61 | retries = 10 | ||
62 | path = os.path.join (tmp, "c_no_nat_client") | ||
63 | test.p ("Removing " + path) | ||
64 | while ((os.path.exists(path)) and (retries > 0)): | ||
65 | shutil.rmtree ((path), False) | ||
66 | time.sleep (1) | ||
67 | retries -= 1 | ||
68 | if (os.path.exists(path)): | ||
69 | test.p ("Failed to remove " + path) | ||
70 | retries = 10 | ||
71 | path = os.path.join (tmp, "c_no_nat_client_2") | ||
72 | test.p ("Removing " + path) | ||
73 | while ((os.path.exists(path)) and (retries > 0)): | ||
74 | shutil.rmtree ((path), False) | ||
75 | time.sleep (1) | ||
76 | retries -= 1 | ||
77 | if (os.path.exists(path)): | ||
78 | test.p ("Failed to remove " + path) | ||
55 | 79 | ||
56 | 80 | ||
57 | def success_cont (check): | 81 | def success_cont (check): |