mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Fix bugs of go-xcat test cases,Modify go-xcat test cases #21
This commit is contained in:
parent
54f3181ac5
commit
0e0584e423
@ -50,11 +50,10 @@ check:rc==0
|
||||
cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "apt-get clean && apt-get update"; fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/go-xcat.log
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat -x $$MIGRATION2_VERSION -y install"
|
||||
cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`; xdsh $$CN "cd /; ./go-xcat -x $migration_version -y install"
|
||||
check:rc==0
|
||||
cmd:cat /tmp/go-xcat.log
|
||||
cmd:xdsh $$CN "source /etc/profile.d/xcat.sh;lsxcatd -v"
|
||||
check:output=~Version $$MIGRATION2_VERSION
|
||||
cmd:xdsh $$CN "service xcatd status"
|
||||
check:rc==0
|
||||
check:output=~running
|
||||
@ -118,12 +117,11 @@ check:rc==0
|
||||
cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "apt-get clean && apt-get update"; fi
|
||||
check:rc==0
|
||||
cmd:rm -rf /tmp/go-xcat.log
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat --xcat-version=$$MIGRATION2_VERSION -y install"
|
||||
cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`; xdsh $$CN "cd /; ./go-xcat --xcat-version=$migration_version -y install"
|
||||
check:rc==0
|
||||
cmd:cat /tmp/go-xcat.log
|
||||
cmd:xdsh $$CN "source /etc/profile.d/xcat.sh;lsxcatd -v"
|
||||
check:rc==0
|
||||
check:output=~Version $$MIGRATION2_VERSION
|
||||
cmd:xdsh $$CN "service xcatd status"
|
||||
check:rc==0
|
||||
check:output=~running
|
||||
@ -134,4 +132,3 @@ cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";els
|
||||
check:rc!=0
|
||||
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user