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: v14.2.10~199^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=feec83a6a86a88ea27c24373749f887841432a84;p=ceph.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 (cherry picked from commit db8b8a6791060eeb4aa10d00ffbb56e71a22142e) --- diff --git a/src/test/pybind/test_cephfs.py b/src/test/pybind/test_cephfs.py index 164e288a50c1..992d066ee094 100644 --- a/src/test/pybind/test_cephfs.py +++ b/src/test/pybind/test_cephfs.py @@ -232,9 +232,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():