summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-06-27 12:35:00 +0530
committerBala Konda Reddy M <bmekala@redhat.com>2019-07-02 12:39:14 +0000
commit47552e720720b36b93d7e86a28af0927a0a38e0c (patch)
tree552bf053347ff1e0e477b19606fb4d5df6f22367
parentf5831a8cd7f6fe54cf6d3ec693b15301516570b8 (diff)
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 <kshithij.ki@gmail.com>
-rw-r--r--tests/functional/glusterd/test_enabling_glusterd_debug_mode.py10
1 files changed, 7 insertions, 3 deletions
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"