summaryrefslogtreecommitdiffstats
path: root/tests/functional/glusterd/test_readonly_option_on_volume.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/glusterd/test_readonly_option_on_volume.py')
-rw-r--r--tests/functional/glusterd/test_readonly_option_on_volume.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/functional/glusterd/test_readonly_option_on_volume.py b/tests/functional/glusterd/test_readonly_option_on_volume.py
index 09e0b4378..064d1ac8a 100644
--- a/tests/functional/glusterd/test_readonly_option_on_volume.py
+++ b/tests/functional/glusterd/test_readonly_option_on_volume.py
@@ -114,10 +114,11 @@ class TestReadOnlyOptionOnVolume(GlusterBaseClass):
self.counter = self.counter + 10
# Validate IO
- g.log.info("Wait for IO to complete and validate IO ...")
- ret = validate_io_procs(self.all_mounts_procs, self.mounts)
- self.assertFalse(ret, "IO should fail on mount points of readonly "
- "volumes but IO success")
+ self.assertFalse(
+ validate_io_procs(self.all_mounts_procs, self.mounts),
+ "IO should fail on mount points of readonly "
+ "volumes but IO succeeded"
+ )
g.log.info("IO failed on mount points of read only volumes "
"as expected")
@@ -150,7 +151,7 @@ class TestReadOnlyOptionOnVolume(GlusterBaseClass):
self.counter = self.counter + 10
# Validate IO
- g.log.info("Wait for IO to complete and validate IO ...")
- ret = validate_io_procs(self.all_mounts_procs, self.mounts)
- self.assertTrue(ret, "IO failed on some of the clients")
- g.log.info("IO is successful on all mounts")
+ self.assertTrue(
+ validate_io_procs(self.all_mounts_procs, self.mounts),
+ "IO failed on some of the clients"
+ )