[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26805 - gnunet/src/integration-tests
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26805 - gnunet/src/integration-tests |
Date: |
Mon, 8 Apr 2013 13:17:59 +0200 |
Author: wachs
Date: 2013-04-08 13:17:59 +0200 (Mon, 08 Apr 2013)
New Revision: 26805
Modified:
gnunet/src/integration-tests/test_integration_clique.py.in
Log:
change
Modified: gnunet/src/integration-tests/test_integration_clique.py.in
===================================================================
--- gnunet/src/integration-tests/test_integration_clique.py.in 2013-04-08
11:08:47 UTC (rev 26804)
+++ gnunet/src/integration-tests/test_integration_clique.py.in 2013-04-08
11:17:59 UTC (rev 26805)
@@ -49,9 +49,33 @@
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):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26805 - gnunet/src/integration-tests,
gnunet <=