gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26800 - gnunet/src/integration-tests


From: gnunet
Subject: [GNUnet-SVN] r26800 - gnunet/src/integration-tests
Date: Mon, 8 Apr 2013 11:47:11 +0200

Author: wachs
Date: 2013-04-08 11:47:11 +0200 (Mon, 08 Apr 2013)
New Revision: 26800

Modified:
   
gnunet/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
Log:
fix


Modified: 
gnunet/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
===================================================================
--- 
gnunet/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
    2013-04-08 09:45:29 UTC (rev 26799)
+++ 
gnunet/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
    2013-04-08 09:47:11 UTC (rev 26800)
@@ -57,8 +57,26 @@
   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_server_stop_cont (check):
     global success 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]