From 970de83498957ac85a7d7bb6664cf2d578e82e87 Mon Sep 17 00:00:00 2001 From: yinkui <13965432176@163.com> Date: Tue, 20 Aug 2019 16:36:49 +0800 Subject: do getfattr in brick_path rather than m_point Change-Id: I240ecb0b4a9c99134b7a5cd237a59c2857d0fb7b Signed-off-by: yinkui <13965432176@163.com> --- tests/functional/dht/test_dht_create_dir.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/functional/dht/test_dht_create_dir.py b/tests/functional/dht/test_dht_create_dir.py index 9fbb54571..2ab0789a8 100644 --- a/tests/functional/dht/test_dht_create_dir.py +++ b/tests/functional/dht/test_dht_create_dir.py @@ -131,7 +131,7 @@ class TestDhtClass(GlusterBaseClass): # , and the brick path brick_tuple = brick.partition(':') brick_path = brick_tuple[2] - gfid = get_fattr(brick_tuple[0], m_point + '/direc', + gfid = get_fattr(brick_tuple[0], brick_path + '/' + direc, 'trusted.gfid') list_of_gfid.append(gfid) flag = True @@ -149,7 +149,8 @@ class TestDhtClass(GlusterBaseClass): list_of_xattrs = get_fattr_list(self.mounts[0].client_system, self.mounts[0].mountpoint + '/' + direc) - del list_of_xattrs['security.selinux'] + if 'security.selinux' in list_of_xattrs: + del list_of_xattrs['security.selinux'] self.assertFalse(list_of_xattrs, "one or more xattr being " "displayed on mount point") g.log.info("Verified : mount point not displaying important " -- cgit