git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sometimes when controller process cleanup happens concurrently with testbed teardown...
[nepi.git]
/
test
/
testbeds
/
planetlab
/
execute.py
diff --git
a/test/testbeds/planetlab/execute.py
b/test/testbeds/planetlab/execute.py
index
4d0fa75
..
627e256
100755
(executable)
--- a/
test/testbeds/planetlab/execute.py
+++ b/
test/testbeds/planetlab/execute.py
@@
-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"