summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-08 11:17:59 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-08 11:17:59 +0000
commit764487aa772a027fe78a72f8fa0088db98a89f01 (patch)
treeea708ed0ff33c607990f9cf29ed8cd2e1ba9cd89 /src
parent5a7ef28c08d6838a3eea0fb314fdacccbbbeb4c6 (diff)
change
Diffstat (limited to 'src')
-rwxr-xr-xsrc/integration-tests/test_integration_clique.py.in30
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
def cleanup ():
- shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
- shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
- shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), 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)
+ retries = 10
+ path = os.path.join (tmp, "c_no_nat_client_2")
+ 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):