diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/integration-tests/test_integration_clique_nat.py.in | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/src/integration-tests/test_integration_clique_nat.py.in b/src/integration-tests/test_integration_clique_nat.py.in index a457e8d83..d890928e8 100755 --- a/src/integration-tests/test_integration_clique_nat.py.in +++ b/src/integration-tests/test_integration_clique_nat.py.in | |||
@@ -49,9 +49,34 @@ 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_nat_client"), 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 | |||
62 | retries = 10 | ||
63 | path = os.path.join (tmp, "c_no_nat_client") | ||
64 | test.p ("Removing " + path) | ||
65 | while ((os.path.exists(path)) and (retries > 0)): | ||
66 | shutil.rmtree ((path), False) | ||
67 | time.sleep (1) | ||
68 | retries -= 1 | ||
69 | if (os.path.exists(path)): | ||
70 | test.p ("Failed to remove " + path) | ||
71 | retries = 10 | ||
72 | path = os.path.join (tmp, "c_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) | ||
55 | 80 | ||
56 | 81 | ||
57 | def success_cont (check): | 82 | def success_cont (check): |