2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #5008 from tingtli/21

Fix bugs of go-xcat test cases,Modify go-xcat test cases #21
This commit is contained in:
Weihua Hu 2018-03-27 15:39:57 +08:00 committed by GitHub
commit d8969d7189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,11 +50,17 @@ 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
check:rc==0
cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`;cd /;if grep Ubuntu /etc/*release;then cd / ; wget http://xcat.org/files/xcat/repos/apt/$migration_version/xcat-core/buildinfo;else cd / ; wget http://xcat.org/files/xcat/repos/yum/$migration_version/xcat-core/buildinfo; fi
cmd:xdsh $$CN "lsxcatd -v" |tee /tmp/version
cmd:if [ -e /buildinfo ]; then xcatversion=`grep VERSION /buildinfo |awk -F'=' '{print $2}'`;grep $xcatversion /tmp/version; fi
check:rc==0
cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`;grep $migration_version /tmp/version
check:rc==0
cmd:xdsh $$CN "service xcatd status"
check:rc==0
check:output=~running
@ -64,6 +70,8 @@ check:rc==0
cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa|grep -i perl-xcat";fi
check:rc!=0
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
cmd:rm -rf /tmp/version
cmd:rm -rf /buildinfo
end
start:go_xcat_with_xcat-version-1
@ -118,12 +126,17 @@ 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:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`;cd /;if grep Ubuntu /etc/*release;then cd / ; wget http://xcat.org/files/xcat/repos/apt/$migration_version/xcat-core/buildinfo;else cd / ; wget http://xcat.org/files/xcat/repos/yum/$migration_version/xcat-core/buildinfo; fi
cmd:xdsh $$CN "lsxcatd -v" |tee /tmp/version
cmd:if [ -e /buildinfo ]; then xcatversion=`grep VERSION /buildinfo |awk -F'=' '{print $2}'`;grep $xcatversion /tmp/version; fi
check:rc==0
cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`;grep $migration_version /tmp/version
check:rc==0
cmd:xdsh $$CN "service xcatd status"
check:rc==0
check:output=~running
@ -133,5 +146,6 @@ check:rc==0
cmd:if grep Ubuntu /etc/*release;then xdsh $$CN "dpkg -l |grep -i perl-xcat";else xdsh $$CN "rpm -qa|grep -i perl-xcat";fi
check:rc!=0
cmd:xdsh $$CN "cd /; rm -rf /go-xcat"
cmd:rm -rf /tmp/version
cmd:rm -rf /buildinfo
end