From 47552e720720b36b93d7e86a28af0927a0a38e0c Mon Sep 17 00:00:00 2001 From: kshithijiyer Date: Thu, 27 Jun 2019 12:35:00 +0530 Subject: Modifying test_enabling_gluster_debug_mode to do more operations. While running test_enabling_gluster_debug_mode through jenkins it was observed that running volume operation once wasn't generating enough of logs by the time the logs were checked which lead to failure of the test case in the jenkins run. So modifying the logic which generates logs to run operation in a loop to generated a good amount of logs. Change-Id: Id7a12c86a04dc86d4856dbe30d945e70e64ea4f7 Signed-off-by: kshithijiyer --- tests/functional/glusterd/test_enabling_glusterd_debug_mode.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/functional/glusterd/test_enabling_glusterd_debug_mode.py') diff --git a/tests/functional/glusterd/test_enabling_glusterd_debug_mode.py b/tests/functional/glusterd/test_enabling_glusterd_debug_mode.py index 7c64fa1fc..7a355f861 100644 --- a/tests/functional/glusterd/test_enabling_glusterd_debug_mode.py +++ b/tests/functional/glusterd/test_enabling_glusterd_debug_mode.py @@ -157,9 +157,13 @@ class TestVolumeOptionSetWithMaxcharacters(GlusterBaseClass): g.log.info('glusterd is running after changing log_level to debug.') # Issue some gluster commands - ret = get_volume_info(self.mnode) - self.assertIsNotNone(ret, "Failed to get volume info") - g.log.info("Successfully got volume info.") + count = 0 + while count < 9: + ret = get_volume_info(self.mnode) + self.assertIsNotNone(ret, "Failed to get volume info") + sleep(2) + count += 1 + g.log.info("Successfully got volume info 9 times.") # Check glusterd logs for debug messages glusterd_log_file = "/var/log/glusterfs/glusterd.log" -- cgit