summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryinkui <13965432176@163.com>2019-08-20 16:36:49 +0800
committerBala Konda Reddy M <bmekala@redhat.com>2019-09-11 06:07:08 +0000
commit970de83498957ac85a7d7bb6664cf2d578e82e87 (patch)
treefbefbab2a2edd7a0f7bed872ead17a0efbfee1a1
parentf54c5000cd197dc596e7b499cca0f509426808e1 (diff)
do getfattr in brick_path rather than m_point
Change-Id: I240ecb0b4a9c99134b7a5cd237a59c2857d0fb7b Signed-off-by: yinkui <13965432176@163.com>
-rw-r--r--tests/functional/dht/test_dht_create_dir.py5
1 files 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 9fbb545..2ab0789 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 "