]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tests/pybind/cephfs: cleanup xattrs before starting tests
authorVenky Shankar <vshankar@redhat.com>
Fri, 9 Oct 2020 11:06:45 +0000 (07:06 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 13 Oct 2020 04:29:38 +0000 (00:29 -0400)
commitaff632a67a4e96b4f9e7252a1ef2df22e297ffa3
tree953d716823bb140a1f1a80843075c5cd5a4a627f
parent7341863a7dc4b89eda0da917813f230fc95ffad7
tests/pybind/cephfs: cleanup xattrs before starting tests

Some xattr tests do not fully cleanup set xattrs. Subsequent
tests may expect xattrs to be absent during the test, such as
setting an xattr and then removing followed by checking if the
xattr list to be empty. This may fail if earlier tests do not
cleanup xattrs, especially for root.

So, cleanup xattrs on root before starting tests. Other directories
are removed anyway, so we do not have to bother about those.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/test/pybind/test_cephfs.py