Sometimes when controller process cleanup happens concurrently with testbed teardown...
[nepi.git] / test / testbeds / planetlab / execute.py
index 4d0fa75..627e256 100755 (executable)
@@ -17,7 +17,12 @@ class PlanetLabExecuteTestCase(unittest.TestCase):
         self.root_dir = tempfile.mkdtemp()
         
     def tearDown(self):
-        shutil.rmtree(self.root_dir)
+        try:
+            shutil.rmtree(self.root_dir)
+        except:
+            # retry
+            time.sleep(0.1)
+            shutil.rmtree(self.root_dir)
 
     def make_instance(self):
         testbed_version = "01"