From 02dbb7a68f828863e5b71dc15488e665d484ab6e Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Tue, 3 Jul 2018 00:45:30 +0300 Subject: Shorten all the logs around verify_io_procs No functional change, just make the tests a bit more readable. It could be moved to a decorator later on, wrapping tests. Change-Id: I484bb8b46907ee8f33dfcf4c960737a21819cd6a Signed-off-by: Yaniv Kaul --- tests/functional/dht/test_rebalance_add_brick_command.py | 2 -- tests/functional/dht/test_rebalance_with_hidden_files.py | 8 ++++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/functional/dht') diff --git a/tests/functional/dht/test_rebalance_add_brick_command.py b/tests/functional/dht/test_rebalance_add_brick_command.py index 7b4a39433..17c57843d 100644 --- a/tests/functional/dht/test_rebalance_add_brick_command.py +++ b/tests/functional/dht/test_rebalance_add_brick_command.py @@ -159,8 +159,6 @@ class ExerciseAddbrickCommand(GlusterBaseClass): self.assertTrue(validate_io_procs([proc], [mount_obj]), 'IO Failed on client %s:%s' % (mount_obj.client_system, mount_obj.mountpoint)) - g.log.info("IO is successful on mount point %s:%s", - mount_obj.client_system, mount_obj.mountpoint) g.log.debug("Unmounting mount points") self.assertTrue(self.unmount_volume(self.mounts), diff --git a/tests/functional/dht/test_rebalance_with_hidden_files.py b/tests/functional/dht/test_rebalance_with_hidden_files.py index 6e51f0523..d3357bcfb 100644 --- a/tests/functional/dht/test_rebalance_with_hidden_files.py +++ b/tests/functional/dht/test_rebalance_with_hidden_files.py @@ -106,10 +106,10 @@ class RebalanceValidation(GlusterBaseClass): self.all_mounts_procs.append(proc) # validate IO - g.log.info("Validating IO on mounts") - 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" + ) # List all files and dirs created g.log.info("List all files and directories:") -- cgit