xcat-core/xCAT-test/autotest/testcase/rpower/cases0
amy0701 9fbec6dcf9 update rpower sleep time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11310 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-12-28 09:58:01 +00:00

80 lines
1.2 KiB
Plaintext

start:rpower_off
cmd:rpower $$CN stat
check:ouptut=~Running
cmd:rpower $$CN off
check:rc==0
check:output=~Success
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Not Activated
cmd:rpower $$CN on
cmd:sleep 100
end
start:rpower_stat
cmd:rpower $$CN stat
check:rc==0
check:output=~Running
cmd:rpower $$CN state
check:rc==0
check:output=~Running
end
start:rpower_boot
cmd:rpower $$CN off
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Not Activated
cmd:rpower $$CN boot
check:rc==0
check:output=~Success
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Running
cmd:sleep 100
end
start:rpower_on
cmd:rpower $$CN off
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Not Activated
cmd:rpower $$CN on
check:rc==0
check:output=~Success
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Running
cmd:sleep 100
end
start:rpower_reset
cmd:rpower $$CN stat
check:ouptut=~Running
cmd:rpower $$CN reset
check:rc==0
check:output=~Success
cmd:sleep 30
cmd:rpower $$CN stat
check:output=~Running
cmd:sleep 100
end
start:rpower_noderange
cmd:rpower $$CN
check:rc!=0
check:output=~Usage
end
start:rpower_noderange_nodeps
cmd:rpower $$CN --nodeps
check:rc!=0
check:output=~Usage
end
start:rpower_err_noderange
cmd:rpower testnode stat
check:rc!=0
check:output=~Error
end