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:
commit
a7433de92e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user