summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJilju Joy <jijoy@redhat.com>2019-01-23 14:30:00 +0530
committerVijay Avuthu <vavuthu@redhat.com>2019-01-24 06:18:29 +0000
commitd463d26797a0932a53427eca908e6d5dbae58d4b (patch)
tree88b85c3cff9a01aff0617108d5d1ed750c113a87
parent30b0188d57d28fe4f4ecc611759807856cafbfac (diff)
Correction in verification of volume/sub_directory unmount
Change-Id: I2abad563b965d67520b8bea6da39b30422d7d028
-rw-r--r--tests/functional/fuse_subdir/test_fusesubdir_with_addbrick.py4
-rw-r--r--tests/functional/fuse_subdir/test_fusesubdir_with_replacebrick.py4
-rw-r--r--tests/functional/fuse_subdir/test_quota_limits_fusesubdir_.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional/fuse_subdir/test_fusesubdir_with_addbrick.py b/tests/functional/fuse_subdir/test_fusesubdir_with_addbrick.py
index fbce954..82312c0 100644
--- a/tests/functional/fuse_subdir/test_fusesubdir_with_addbrick.py
+++ b/tests/functional/fuse_subdir/test_fusesubdir_with_addbrick.py
@@ -219,10 +219,10 @@ class SubdirWithAddBrick(GlusterBaseClass):
# Unmount sub-directories from client
# Test needs to continue if unmount fail.Not asserting here.
ret = self.unmount_volume(self.subdir_mounts)
- if ret == 0:
+ if ret:
g.log.info("Successfully unmounted all the subdirectories")
else:
- g.log.error(ret, "Failed to unmount sub-directories")
+ g.log.error("Failed to unmount sub-directories")
# cleanup-volume
ret = self.cleanup_volume()
diff --git a/tests/functional/fuse_subdir/test_fusesubdir_with_replacebrick.py b/tests/functional/fuse_subdir/test_fusesubdir_with_replacebrick.py
index 33f2417..f38e9fe 100644
--- a/tests/functional/fuse_subdir/test_fusesubdir_with_replacebrick.py
+++ b/tests/functional/fuse_subdir/test_fusesubdir_with_replacebrick.py
@@ -215,10 +215,10 @@ class SubdirWithReplaceBrick(GlusterBaseClass):
# Unmount the sub-directories
# Test needs to continue if unmount fail.Not asserting here.
ret = self.unmount_volume(self.subdir_mounts)
- if ret == 0:
+ if ret:
g.log.info("Successfully unmounted all the subdirectories")
else:
- g.log.error(ret, "Failed to unmount sub-directories")
+ g.log.error("Failed to unmount sub-directories")
# cleanup-volume
ret = self.cleanup_volume()
diff --git a/tests/functional/fuse_subdir/test_quota_limits_fusesubdir_.py b/tests/functional/fuse_subdir/test_quota_limits_fusesubdir_.py
index b8b9206..69daa8a 100644
--- a/tests/functional/fuse_subdir/test_quota_limits_fusesubdir_.py
+++ b/tests/functional/fuse_subdir/test_quota_limits_fusesubdir_.py
@@ -265,10 +265,10 @@ class FuseSubdirQuotaTest(GlusterBaseClass):
# Unmount sub-directories from client
# Test needs to continue if unmount fail.Not asserting here.
ret = self.unmount_volume(self.subdir_mounts)
- if ret == 0:
+ if ret:
g.log.info("Successfully unmounted all the subdirectories")
else:
- g.log.error(ret, "Failed to unmount sub-directories")
+ g.log.error("Failed to unmount sub-directories")
# cleanup-volume
ret = self.cleanup_volume()