From db8b8a6791060eeb4aa10d00ffbb56e71a22142e Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Fri, 28 Feb 2020 02:36:36 -0500 Subject: [PATCH] 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 --- src/test/pybind/test_cephfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(): -- 2.39.5