aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/test_integration_bootstrap_and_connect.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/integration-tests/test_integration_bootstrap_and_connect.py.in')
-rwxr-xr-xsrc/integration-tests/test_integration_bootstrap_and_connect.py.in24
1 files changed, 21 insertions, 3 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 cd3bdbef8..b95ed3c57 100755
--- a/src/integration-tests/test_integration_bootstrap_and_connect.py.in
+++ b/src/integration-tests/test_integration_bootstrap_and_connect.py.in
@@ -57,9 +57,27 @@ 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 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)
80
63def success_cont (check): 81def success_cont (check):
64 global success 82 global success
65 success = True; 83 success = True;