From d1ac7c6327618ab25f3452e7dd76f98e8f89c4d8 Mon Sep 17 00:00:00 2001 From: huweihua Date: Wed, 3 Apr 2019 02:16:17 -0400 Subject: [PATCH] remove useless sleep --- xCAT-test/autotest/testcase/xcatconfig/case0 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xCAT-test/autotest/testcase/xcatconfig/case0 b/xCAT-test/autotest/testcase/xcatconfig/case0 index f3ba948eb..05f888c72 100644 --- a/xCAT-test/autotest/testcase/xcatconfig/case0 +++ b/xCAT-test/autotest/testcase/xcatconfig/case0 @@ -123,16 +123,14 @@ check:rc==0 cmd:#!/bin/bash rc=0 if service goconserver status;then - echo "----->goconserver is working, to restart goconserver" + echo "----->goconserver is working, to restart goconserver and enforce conserver stop" service goconserver restart + service conserver stop sleep 5 echo "----->To check the status of goconserver" if ! service goconserver status; then rc=1 fi - echo "----->To enforce conserver stop" - service conserver stop - sleep 5 echo "----->To check the status of conserver" if service conserver status; then rc=1 @@ -140,6 +138,7 @@ if service goconserver status;then elif service conserver status;then echo "----->conserver is working, to restart conserver" service conserver restart + sleep 5 echo "----->To check the status of conserver" if ! service conserver status; then rc=1