summaryrefslogtreecommitdiffstats
path: root/tests/functional/snapshot/test_validate_snaps_dir_over_uss.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/snapshot/test_validate_snaps_dir_over_uss.py')
-rw-r--r--tests/functional/snapshot/test_validate_snaps_dir_over_uss.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/functional/snapshot/test_validate_snaps_dir_over_uss.py b/tests/functional/snapshot/test_validate_snaps_dir_over_uss.py
index 5b91f8b..8fcce00 100644
--- a/tests/functional/snapshot/test_validate_snaps_dir_over_uss.py
+++ b/tests/functional/snapshot/test_validate_snaps_dir_over_uss.py
@@ -139,11 +139,11 @@ class TestValidateUss(GlusterBaseClass):
self.io_validation_complete = False
# 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")
+ self.assertTrue(
+ validate_io_procs(self.all_mounts_procs, self.mounts),
+ "IO failed on some of the clients"
+ )
self.io_validation_complete = True
- g.log.info("I/O successful on clients")
# get the snapshot list.
snap_list = get_snap_list(self.mnode)
@@ -212,8 +212,10 @@ class TestValidateUss(GlusterBaseClass):
# IO should fail
g.log.info("IO should Fail with ROFS error.....")
- ret = validate_io_procs(all_mounts_procs, self.mounts)
- self.assertFalse(ret, "Unexpected: IO successfully completed")
+ self.assertFalse(
+ validate_io_procs(all_mounts_procs, self.mounts),
+ "Unexpected: IO successfully completed"
+ )
g.log.info("Expected: IO failed to complete")
# validate snap-0 present in mountpoint