diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/integration-tests/test_integration_restart.py.in | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/integration-tests/test_integration_restart.py.in b/src/integration-tests/test_integration_restart.py.in index b3d3ecd18..70d10be24 100755 --- a/src/integration-tests/test_integration_restart.py.in +++ b/src/integration-tests/test_integration_restart.py.in | |||
@@ -52,9 +52,26 @@ else: | |||
52 | tmp = "/tmp" | 52 | tmp = "/tmp" |
53 | 53 | ||
54 | def cleanup (): | 54 | def cleanup (): |
55 | shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True) | 55 | retries = 10 |
56 | shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True) | 56 | path = os.path.join (tmp, "c_bootstrap_server") |
57 | 57 | test.p ("Removing " + path) | |
58 | while ((os.path.exists(path)) and (retries > 0)): | ||
59 | shutil.rmtree ((path), False) | ||
60 | time.sleep (1) | ||
61 | retries -= 1 | ||
62 | if (os.path.exists(path)): | ||
63 | test.p ("Failed to remove " + path) | ||
64 | |||
65 | |||
66 | retries = 10 | ||
67 | path = os.path.join (tmp, "c_no_nat_client") | ||
68 | test.p ("Removing " + path) | ||
69 | while ((os.path.exists(path)) and (retries > 0)): | ||
70 | shutil.rmtree ((path), False) | ||
71 | time.sleep (1) | ||
72 | retries -= 1 | ||
73 | if (os.path.exists(path)): | ||
74 | test.p ("Failed to remove " + path) | ||
58 | 75 | ||
59 | def success_restart_cont (check): | 76 | def success_restart_cont (check): |
60 | global success | 77 | global success |