summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVijay Avuthu <vavuthu@redhat.com>2018-08-03 17:28:44 +0530
committerAkarsha Rai <akrai@redhat.com>2018-08-07 06:58:00 +0000
commite0bb79503c37843d02082b93425230f2afbbbde2 (patch)
treea3c0eee203992069c172976ff506ba10a3b34f80 /tests
parent42dbbc408aef6246102a956407d99089d95fbef8 (diff)
Fixing the return value for is_io_procs_fail_with_rofs
Change-Id: Ibb159d8a1b28ae267ca89800ace1ece9a3382b35 Signed-off-by: Vijay Avuthu <vavuthu@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/afr/test_client_side_quorum.py34
1 files changed, 22 insertions, 12 deletions
diff --git a/tests/functional/afr/test_client_side_quorum.py b/tests/functional/afr/test_client_side_quorum.py
index 8c6e3c8a5..0432a13ab 100644
--- a/tests/functional/afr/test_client_side_quorum.py
+++ b/tests/functional/afr/test_client_side_quorum.py
@@ -170,7 +170,8 @@ class ClientSideQuorumTests(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with read-only filesystem")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on read-only filesystem"))
g.log.info("EXPECTED: Read-only file system in IO while creating file")
@@ -187,7 +188,8 @@ class ClientSideQuorumTests(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with read-only filesystem")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on read-only filesystem"))
g.log.info("EXPECTED: Read-only file system in IO while"
@@ -493,7 +495,8 @@ class ClientSideQuorumTests(GlusterBaseClass):
# check IO failed with Read Only File System error
g.log.info("Wait for IO to complete and validate IO.....")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successful "
"on Read-only file system. Please check the "
"logs for more details"))
@@ -986,7 +989,8 @@ class ClientSideQuorumCross2Tests(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read Only File System")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected Error and IO successfull"
" on Read-Only File System"))
g.log.info("EXPECTED Read-only file system in IO while creating file")
@@ -1073,7 +1077,8 @@ class ClientSideQuorumCross2Tests(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read Only File System")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected Error and IO successfull"
" on Read-Only File System"))
g.log.info("EXPECTED Read-only file system in IO while creating file")
@@ -1213,7 +1218,8 @@ class ClientSideQuorumCross2Tests(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read Only File System")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected Error and IO successfull"
" on Read-Only File System"))
g.log.info("EXPECTED Read-only file system in IO while creating file")
@@ -1604,8 +1610,8 @@ class ClientSideQuorumTestsMultipleVols(GlusterBaseClass):
# Validate IO
g.log.info("Validating if IO failed with read-only filesystem")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs,
- self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on read-only filesystem"))
g.log.info("EXPECTED: "
@@ -1949,7 +1955,8 @@ class ClientSideQuorumTestsWithSingleVolumeCross3(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read Only File System")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected Error and IO successfull"
" on Read-Only File System"))
g.log.info("EXPECTED Read-only file system in IO while creating file")
@@ -2128,7 +2135,8 @@ class ClientSideQuorumTestsWithSingleVolumeCross3(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read-only file system")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on Read-only file system"))
g.log.info("EXPECTED: Read-only file system in IO while creating file")
@@ -2171,7 +2179,8 @@ class ClientSideQuorumTestsWithSingleVolumeCross3(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read-only file system")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on Read-only file system"))
g.log.info("EXPECTED: Read-only file system in IO while creating file")
@@ -2214,7 +2223,8 @@ class ClientSideQuorumTestsWithSingleVolumeCross3(GlusterBaseClass):
# Validate IO
g.log.info("Validating whether IO failed with Read-only file system")
- ret = is_io_procs_fail_with_rofs(self, all_mounts_procs, self.mounts)
+ ret, _ = is_io_procs_fail_with_rofs(self, all_mounts_procs,
+ self.mounts)
self.assertTrue(ret, ("Unexpected error and IO successfull"
" on Read-only file system"))
g.log.info("EXPECTED: Read-only file system in IO while creating file")