summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkshithijiyer <kshithij.ki@gmail.com>2019-03-13 15:30:04 +0530
committerAkarsha Rai <akrai@redhat.com>2019-05-23 06:55:36 +0000
commit71f732b896a9776b7d08bc65ac6de00c4ea5d0cd (patch)
tree9f53f778f15bdc6b3742698fcde10ba730d39bdb
parentc04c4a6507df415f1a337c79e357f26fa93e5308 (diff)
Changing systemctl to service to fix jira issue RHGSQE-197
Bug https://bugzilla.redhat.com/show_bug.cgi?id=1690254 has to be fixed before merging this patch. Change-Id: I90e669269fafa9d0a064a64883c3e4b88080d25f Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
-rw-r--r--tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py b/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
index 5207fb1..6256e85 100644
--- a/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
+++ b/tests/functional/glusterd/test_volume_create_with_glusterd_restarts.py
@@ -70,7 +70,8 @@ class TestVolumeCreateWithGlusterdRestarts(GlusterBaseClass):
server_info_for_three_nodes)
# Restarting glusterd in a loop
restart_cmd = ("for i in `seq 1 5`; do "
- "systemctl restart glusterd; done")
+ "service glusterd restart; sleep 3; "
+ "done")
proc1 = g.run_async(self.servers[3], restart_cmd)
# Creating volumes using 3 servers
@@ -94,7 +95,8 @@ class TestVolumeCreateWithGlusterdRestarts(GlusterBaseClass):
# Restarting glusterd in a loop
restart_cmd = ("for i in `seq 1 5`; do "
- "systemctl restart glusterd; done")
+ "service glusterd restart; sleep 3; "
+ "done")
proc1 = g.run_async(self.servers[3], restart_cmd)
# Start the volume created.