[ARVADOS] created: 96e6e2890330e18af48d460e54077257bd82161e
git at public.curoverse.com
git at public.curoverse.com
Tue Jun 3 09:42:16 EDT 2014
at 96e6e2890330e18af48d460e54077257bd82161e (commit)
commit 96e6e2890330e18af48d460e54077257bd82161e
Author: Ward Vandewege <ward at curoverse.com>
Date: Tue Jun 3 09:40:54 2014 -0400
Retry the fusermount call up to 10 times with a small pause between
calls if it is not successful. This should make the teardown of the fuse
mount more reliable in automated testing.
refs #2951
diff --git a/services/fuse/tests/test_mount.py b/services/fuse/tests/test_mount.py
index a644003..3939e5a 100644
--- a/services/fuse/tests/test_mount.py
+++ b/services/fuse/tests/test_mount.py
@@ -21,7 +21,12 @@ class MountTestBase(unittest.TestCase):
def tearDown(self):
# llfuse.close is buggy, so use fusermount instead.
#llfuse.close(unmount=True)
- subprocess.call(["fusermount", "-u", self.mounttmp])
+ count = 0
+ success = 1
+ while (count < 9 and success != 0):
+ success = subprocess.call(["fusermount", "-u", self.mounttmp])
+ time.sleep(0.5)
+ count += 1
os.rmdir(self.mounttmp)
shutil.rmtree(self.keeptmp)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list