aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-08 11:21:43 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-08 11:21:43 +0000
commit337dd957e110bc530f7d2898d42617a4289b4d8b (patch)
tree4638ba4a9e38ce7e7d9b50c3df8b82ad0a74c068
parentb7dbf9057993982020320b8015180928a0a8ebee (diff)
downloadgnunet-337dd957e110bc530f7d2898d42617a4289b4d8b.tar.gz
gnunet-337dd957e110bc530f7d2898d42617a4289b4d8b.zip
fix
-rwxr-xr-xsrc/integration-tests/test_integration_connect_on_restart.py.in31
1 files changed, 29 insertions, 2 deletions
diff --git a/src/integration-tests/test_integration_connect_on_restart.py.in b/src/integration-tests/test_integration_connect_on_restart.py.in
index 0b23c8fe8..21d9f26b8 100755
--- a/src/integration-tests/test_integration_connect_on_restart.py.in
+++ b/src/integration-tests/test_integration_connect_on_restart.py.in
@@ -51,8 +51,35 @@ else:
51 tmp = "/tmp" 51 tmp = "/tmp"
52 52
53def cleanup (): 53def cleanup ():
54 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True) 54 retries = 10
55 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True) 55 path = os.path.join (tmp, "c_bootstrap_server")
56 test.p ("Removing " + path)
57 while ((os.path.exists(path)) and (retries > 0)):
58 shutil.rmtree ((path), False)
59 time.sleep (1)
60 retries -= 1
61 if (os.path.exists(path)):
62 test.p ("Failed to remove " + path)
63
64 retries = 10
65 path = os.path.join (tmp, "c_no_nat_client")
66 test.p ("Removing " + path)
67 while ((os.path.exists(path)) and (retries > 0)):
68 shutil.rmtree ((path), False)
69 time.sleep (1)
70 retries -= 1
71 if (os.path.exists(path)):
72 test.p ("Failed to remove " + path)
73
74 retries = 10
75 path = os.path.join (tmp, "c_no_nat_client_2")
76 test.p ("Removing " + path)
77 while ((os.path.exists(path)) and (retries > 0)):
78 shutil.rmtree ((path), False)
79 time.sleep (1)
80 retries -= 1
81 if (os.path.exists(path)):
82 test.p ("Failed to remove " + path)
56 shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True) 83 shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True)
57 84
58 85