summaryrefslogtreecommitdiffstats
path: root/tests/functional/dht/test_dht_create_dir.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/dht/test_dht_create_dir.py')
-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 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 "