2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #5891 from xcat2/task82

Add test case for issue 4138 : the node status cannot be updated on normal system reboot
This commit is contained in:
Weihua Hu 2018-12-21 17:01:32 +08:00 committed by GitHub
commit a7433de92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,3 +197,23 @@ check:output=~Error: (\[.*?\]: )?[Uu]nsupported command[:]* rpower ddd
check:rc==1
end
start:rpower_off_on
description:This case is to test off and on option could work for a diskful node. This case is do task 82, for bug 4132, the node status cannot be updated on normal system reboot #4138.
Attribute: $$CN-The operation object of rpower command
label:others,hctrl_general
cmd:rpower $$CN stat
check:output=~Running|on
cmd:lsdef -l $$CN -i status
check:output=~booted
cmd:rpower $$CN off
check:rc==0
cmd:a=0;while ! `rpower $$CN stat|grep "Not Activated\|off" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
cmd:rpower $$CN on
check:rc==0
cmd:a=0;while ! `rpower $$CN stat|grep "Running\|on" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
cmd:rpower $$CN stat
check:output=~Running|on
cmd:a=0;while ! `lsdef -l $$CN -i status|grep "booted" >/dev/null`; do sleep 5;((a++));if [ $a -gt 50 ];then break;fi done
cmd:lsdef -l $$CN -i status|grep "booted"
check:rc==0
end