2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #7153 from besawn/testcase_fixes

Fixed failing `gettab_err` and `rpower_off` testcases after enhanced xcattest syntax checking was enabled
This commit is contained in:
besawn 2022-04-26 12:34:16 -04:00 committed by GitHub
commit b9131ef7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -18,16 +18,17 @@ check:output=~site.value:
end
start:gettab_err
description:gettab with error symble ,error key ,error attr.
description:gettab with invalid option, invalid key, and invalid attribute
label:mn_only,ci_test,db
cmd:gettab -c
check:rc!=0
check:output=~Usage
cmd:gettab -H groups=master site.key
check:rc!=0
check:output=~Error:
cmd:gettab -H key=master site.groups
check:rc==0
check:output==site.groups:
check:output=~^$
end

View File

@ -4,7 +4,8 @@ Attribute: $$CN-The operation object of rpower command
label:cn_bmc_ready,hctrl_general
cmd:rpower $$CN on
cmd:a=0;while ! `rpower $$CN stat|grep "Running\|on" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
check:ouptut=~Running|on
cmd:rpower $$CN stat
check:output=~Running|on
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