From: Venky Shankar Date: Fri, 28 Feb 2020 07:36:36 +0000 (-0500) Subject: test: revert to default mount state in test_cephfs:test_mount_root() X-Git-Tag: v15.1.1~154^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=db8b8a6791060eeb4aa10d00ffbb56e71a22142e;p=ceph-ci.git test: revert to default mount state in test_cephfs:test_mount_root() without this tests written after test_mount_root() in the source were failing with cephfs.LibCephFSStateError: You cannot perform that operation on a CephFS object in state initialized. ... since the test fiddles with the default mount which is root. Signed-off-by: Venky Shankar --- diff --git a/src/test/pybind/test_cephfs.py b/src/test/pybind/test_cephfs.py index 122c01258dc..e633ee0cd01 100644 --- a/src/test/pybind/test_cephfs.py +++ b/src/test/pybind/test_cephfs.py @@ -257,9 +257,10 @@ def test_mount_root(): cephfs.mkdir(b"/mount-directory", 0o755) cephfs.unmount() cephfs.mount(mount_root = b"/mount-directory") - cephfs.unmount() assert_raises(libcephfs.Error, cephfs.mount, mount_root = b"/nowhere") + cephfs.unmount() + cephfs.mount() @with_setup(setup_test) def test_utime():