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

Merge pull request #5634 from tingtli/bug1641

add a case for bug 1641 go-xcat update will continue even if required repoquery command is not installed
This commit is contained in:
Weihua Hu
2018-09-21 16:07:42 +08:00
committed by GitHub

View File

@@ -0,0 +1,18 @@
start:go_xcat_without_repoquery
description:test go_xcat when command repoquery is not found. This case is for bug 1641.
os:rhels
label:others,go_xcat
cmd:if xdsh $$CN "yum -h";then xdsh $$CN "yum remove -y *xCAT*";fi
cmd:xdsh $$CN "mv -f /usr/bin/repoquery /usr/bin/repoquery.bak"
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
check:rc==0
cmd:xdsh $$CN "cd /; scp -r $$MN:/opt/xcat/share/xcat/tools/go-xcat ./"
check:rc==0
cmd:xdsh $$CN "cd /; ./go-xcat --xcat-version=devel update -y"
check:rc!=0
check:output=~Command "repoquery" not found
check:output=~go-xcat: Install the `yum-utils' package and rerun
check:output=~go-xcat: Failed to get package list from repository `xcat-core'
cmd:xdsh $$CN "mv -f /usr/bin/repoquery.bak /usr/bin/repoquery"
end