From f3ff49d16dc3d32c3c834ffff9a4e816f4840936 Mon Sep 17 00:00:00 2001 From: caomengmeng Date: Mon, 14 Mar 2016 15:56:53 +0800 Subject: [PATCH] Update case0 --- xCAT-test/autotest/testcase/xcatd/case0 | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/xCAT-test/autotest/testcase/xcatd/case0 b/xCAT-test/autotest/testcase/xcatd/case0 index 86e185f63..60e997440 100644 --- a/xCAT-test/autotest/testcase/xcatd/case0 +++ b/xCAT-test/autotest/testcase/xcatd/case0 @@ -14,20 +14,21 @@ check:output=~[ OK ] cmd:service xcatd status check:rc==0 check:output=~xCAT service is running -cmd:ps -ef | grep "xcatd: SSL listener" | grep -v grep | wc -l -check:output==1 -cmd:ps -ef | grep "xcatd: DB Access" | grep -v grep | wc -l -check:output==1 -cmd:ps -ef | grep "xcatd: UDP listener" | grep -v grep | wc -l -check:output==1 -cmd:ps -ef | grep "xcatd: install monitor" | grep -v grep | wc -l -check:output==1 -cmd:ps -ef | grep "xcatd: Discovery worke" | grep -v grep | wc -l -check:output==1 -cmd:ps -ef | grep "xcatd: Command log writer" | grep -v grep | wc -l -check:output==1 +cmd:result=`ps -ef | grep "xcatd: SSL listener" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process +cmd:result=`ps -ef | grep "xcatd: DB Access" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process +cmd:result=`ps -ef | grep "xcatd: UDP listener" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process +cmd:result=`ps -ef | grep "xcatd: install monitor" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process +cmd:result=`ps -ef | grep "xcatd: Discovery worke" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process +cmd:result=`ps -ef | grep "xcatd: Command log writer" | grep -v grep | wc -l`; if [ $result -eq 1 ]; then echo "only one process"; fi +check:output=~only one process end + start:xcatd_stop description:stop xcatd daemon, then check all the 6 processes are stopped os:linux