]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_cephfs: call object setup/teardown for all tests in TestWithRootUser
authorRishabh Dave <ridave@redhat.com>
Wed, 12 Nov 2025 17:04:40 +0000 (22:34 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 16 Apr 2026 12:41:08 +0000 (18:11 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/test/pybind/test_cephfs.py

index e68353cf3c7a3db638d9f2054f51fa53deee24ed..0943d72117a31d292e2cd80fcbb075a083a89c81 100644 (file)
@@ -1506,7 +1506,7 @@ class TestWithRootUser:
         assert_equal(st2.st_gid, new_gid)
 
         # reset to old uid & gid for sake of teardown.
-        cephfs.chownat(dirfd, b'slink1', old_uid, old_gid, 0)
+        cephfs.chownat(dirfd, b'slink1', old_uid, old_gid, libcephfs.AT_SYMLINK_NOFOLLOW)
         cephfs.close(dirfd)
 
     def test_setattrx(self, testdir):