diff --git a/xCAT-test/autotest/testcase/go-xcat/case1 b/xCAT-test/autotest/testcase/go-xcat/case1 index bb936f73a..24db15efc 100644 --- a/xCAT-test/autotest/testcase/go-xcat/case1 +++ b/xCAT-test/autotest/testcase/go-xcat/case1 @@ -54,6 +54,13 @@ cmd:migration_version=`echo $$MIGRATION2_VERSION |cut -d "." -f -2`; xdsh $$CN " check:rc==0 cmd:cat /tmp/go-xcat.log cmd:xdsh $$CN "source /etc/profile.d/xcat.sh;lsxcatd -v" +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 @@ -63,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 @@ -122,6 +131,12 @@ check:rc==0 cmd:cat /tmp/go-xcat.log cmd:xdsh $$CN "source /etc/profile.d/xcat.sh;lsxcatd -v" 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 @@ -131,4 +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