2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 12:51:10 +00:00

delete invalid cases

This commit is contained in:
caomengmeng
2016-05-05 03:54:59 -04:00
parent 200e8eadf5
commit c06d600aab

View File

@@ -286,55 +286,3 @@ check:output=~Generating grub configuration file
cmd:xdsh $$CN "file \/var\/log\/installer"
check:output!~No such file or directory
end
start:set_xcatdebugmode_one_ubuntu
os:linux
description:site.xcatdebugmode value is 1, the following logs will be shown and ssh is not supported.
cmd:chtab key=xcatdebugmode site.value="1"
check:rc==0
cmd:nodeset $$CN osimage=__GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-install-compute
check:rc==0
cmd:if [[ "__GETNODEATTR($$CN,arch)__" =~ "ppc64el" ]]; then rpower $$CN reset;elif [[ "__GETNODEATTR($$CN,arch)__" =~ "x86_64" ]];then mgt=`lsdef $$CN | grep mgt`; if [[ $mgt =~ "bmc" ]]; then rpower $$CN boot; elif [[ $mgt =~ "ipmi" ]]; then rsetboot $$CN net; rpower $$CN reset; fi; elif [[ "__GETNODEATTR($$CN,arch)__" =~ "ppc64" ]]; then rnetboot $$CN; fi
check:rc==0
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep installing >/dev/null`; do sleep 20;((a++));if [ $a -gt 30 ];then break;fi done
cmd:xdsh $$CN date
check:output=~(Connection refused|No route to host)
check:rc==1
cmd:a=0;while ! `lsdef -l $$CN|grep status|grep booted >/dev/null`; do sleep 20;((a++));if [ $a -gt 90 ];then break;fi done
cmd:lsdef -l $$CN | grep status
check:output=~booted
start:test_log
cmd:lsdef -l $$CN | grep status
check:output=~booted
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"Running preseeding early\_command Installation script\""
check:output=~Running preseeding early\_command Installation script
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"\[get\_install\_disk\]Information from \/proc\/partitions\:\""
check:output=~\[get\_install\_disk\]Information from \/proc\/partitions\:
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"Running preseeding late\_command Installation script\""
checkoutput=~Running preseeding late\_command Installation script
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"postscripts downloaded successfully\""
check:output=~\+ echo \'postscripts# downloaded successfully\'
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"mypostscript returned\""
check:output=~\+ echo \'mypostscript returned\'
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log | grep \"finished node installation, reporting status\""
check:output=~\+ echo \'finished node installation\'
cmd:cat /var/log/xcat/commands.log | grep "/opt/xcat/xcatinfo generated"
check:output=~/opt/xcat/xcatinfo generated
cmd:cat /var/log/xcat/commands.log | grep "postscripts downloaded successfully"
check:output=~postscripts downloaded successfully
cmd:cat /var/log/xcat/commands.log | grep "running /xcatpost/mypostscript.post"
check:output=~running /xcatpost/mypostscript.post
cmd:cat /var/log/xcat/commands.log | grep "/etc/init.d/xcatpostinit1 generated"
check:output=~/etc/init.d/xcatpostinit1 generated
cmd:cat /var/log/xcat/commands.log | grep "/opt/xcat/xcatinstallpost generated"
check:output=~/opt/xcat/xcatinstallpost generated
cmd:cat /var/log/xcat/commands.log | grep "/opt/xcat/xcatdsklspost generated"
check:output=~/opt/xcat/xcatdsklspost generated
cmd:cat /var/log/xcat/commands.log | grep "running mypostscript"
check:output=~running mypostscript
cmd:xdsh $$CN "file \/var\/log\/installer"
check:output!~No such file or directory
cmd:chtab key=xcatdebugmode site.value="0"
check:rc==0
end