2
0
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:
xuweibj 2018-05-24 16:23:59 +08:00 committed by GitHub
commit a758733d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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