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
/
netns
/
integration.py
diff --git
a/test/testbeds/netns/integration.py
b/test/testbeds/netns/integration.py
index
16f336c
..
a18cdb0
100755
(executable)
--- a/
test/testbeds/netns/integration.py
+++ b/
test/testbeds/netns/integration.py
@@
-187,7
+187,12
@@
class NetnsIntegrationTestCase(unittest.TestCase):
controller.shutdown()
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)
if __name__ == '__main__':
unittest.main()