aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in')
-rwxr-xr-xsrc/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
index 55982c2e4..6fd18f5c2 100755
--- a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
+++ b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
@@ -57,8 +57,26 @@ else:
57 tmp = "/tmp" 57 tmp = "/tmp"
58 58
59def cleanup (): 59def 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_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
63def success_server_stop_cont (check): 81def success_server_stop_cont (check):
64 global success 82 global success