mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #5242 from hu-weihua/casesupdate
Modify some error or typo in some old cases
This commit is contained in:
commit
a758733d83
@ -61,7 +61,7 @@ start:chtab_err_table
|
||||
description:chtab with error table
|
||||
cmd:chtab error=error site.comment=error
|
||||
check:rc!=0
|
||||
check:output=~no such column
|
||||
check:output=~no such column|column \"error\" does not exist
|
||||
end
|
||||
|
||||
|
||||
|
@ -44,7 +44,15 @@ check:rc!=0
|
||||
check:output=~Usage
|
||||
end
|
||||
start:chvm_err_node
|
||||
cmd:chvm testnode
|
||||
cmd:dir="/tmp/chvm_err_node";echo ${dir}".old";if [ -d "${dir}" ];then mv ${dir} ${dir}".old"; fi; mkdir -p $dir
|
||||
check:rc==0
|
||||
cmd:lsdef bogusnode > /dev/null 2>&1;if [[ $? -eq 0 ]]; then lsdef bogusnode -z >/tmp/chvm_err_node/bogusnode.stanza ;rmdef bogusnode;fi
|
||||
check:rc==0
|
||||
cmd:chvm bogusnode
|
||||
check:rc!=0
|
||||
check:output=~Usage
|
||||
check:output=~Error: Invalid nodes and/or groups in noderange
|
||||
cmd:if [[ -e /tmp/chvm_err_node/bogusnode.stanza ]]; then cat /tmp/chvm_err_node/bogusnode.stanza | mkdef -z;fi
|
||||
check:rc==0
|
||||
cmd:dir="/tmp/chvm_err_node"; rm -rf $dir; if [ -d ${dir}".old" ];then mv ${dir}".old" $dir; fi
|
||||
check:rc==0
|
||||
end
|
||||
|
@ -294,8 +294,8 @@ check:rc==0
|
||||
check:output=~1 object definitions have been created or modified
|
||||
cmd:lsdef auto_test_cec_node
|
||||
check:output=~Object name\: auto\_test\_cec\_node
|
||||
check:output=~groups\=test\_template\_priority
|
||||
check:output!=groups\=cec\,all
|
||||
check:output!=groups\=test\_template\_priority
|
||||
check:output=~groups\=cec\,all
|
||||
check:output=~hwtype\=cec
|
||||
check:output=~mgt\=hmc
|
||||
check:output=~nodetype\=ppc
|
||||
|
@ -173,7 +173,7 @@ end
|
||||
|
||||
start:nodech_d_error
|
||||
description:nodech --delete
|
||||
cmd:chdef -t node -o testnode os=hello
|
||||
cmd:chdef -t node -o testnode os=hello groups=test
|
||||
check:rc==0
|
||||
cmd:nodech --delete
|
||||
check:rc!=0
|
||||
|
@ -29,7 +29,7 @@ start:xcatsnap_v
|
||||
description:xcatsnap -v and --version
|
||||
cmd:xcatsnap -v
|
||||
check:output=~version|Version
|
||||
cmd:xcatsnamp --version
|
||||
cmd:xcatsnap --version
|
||||
check:output=~version|Version
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user