summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-08 09:45:29 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-08 09:45:29 +0000
commit5a889b04b4975e880fe5fd815b7c39f6e8dd9855 (patch)
treeb8e98116505e40ced8119395bcceb908ba1e0e38
parent6f3ff8ff3db35d2a5c02e8cc88a912e9e0106d7c (diff)
fixed cleanup
-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:
tmp = "/tmp"
def cleanup ():
- shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
- shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
-
+ retries = 10
+ path = os.path.join (tmp, "c_bootstrap_server")
+ test.p ("Removing " + path)
+ while ((os.path.exists(path)) and (retries > 0)):
+ shutil.rmtree ((path), False)
+ time.sleep (1)
+ retries -= 1
+ if (os.path.exists(path)):
+ test.p ("Failed to remove " + path)
+
+
+ retries = 10
+ path = os.path.join (tmp, "c_no_nat_client")
+ test.p ("Removing " + path)
+ while ((os.path.exists(path)) and (retries > 0)):
+ shutil.rmtree ((path), False)
+ time.sleep (1)
+ retries -= 1
+ if (os.path.exists(path)):
+ test.p ("Failed to remove " + path)
+
def success_cont (check):
global success
success = True;