]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: fix unmount call in volumeclient test
authorJohn Spray <john.spray@redhat.com>
Mon, 7 Nov 2016 13:58:53 +0000 (13:58 +0000)
committerJohn Spray <john.spray@redhat.com>
Wed, 7 Dec 2016 00:46:11 +0000 (00:46 +0000)
Should have been to umount_wait, not umount (i.e.
the blocking foreground version).  This happened
to matter because umount_wait is more tolerant
of being called if the client is not already mounted.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_volume_client.py

index 101acf50853b3626b4e25eb37b3307ab69d8caf7..67b91cba7883a40de6f6e3beedd3938d94b60b41 100644 (file)
@@ -178,7 +178,7 @@ vc.disconnect()
 
         # I'm going to use mount_c later as a guest for mounting the created
         # shares
-        self.mounts[2].umount()
+        self.mounts[2].umount_wait()
 
         # I'm going to leave mount_b unmounted and just use it as a handle for
         # driving volumeclient.  It's a little hacky but we don't have a more