mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 17:30:19 +00:00
go-xcat testcase on Ubuntu to accept default package installation
This commit is contained in:
@ -28,6 +28,9 @@ cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEB
|
||||
#Replace sources.list file on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then code=`lsb_release -sc` && xdsh $$CN "scp -r $$MN:/opt/xcat/share/xcat/tools/autotest/testcase/go_xcat/$code-__GETNODEATTR($$CN,arch)__.sources.list /etc/apt/sources.list"; fi
|
||||
|
||||
#Set flag to accept install dependent packages by default on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then arc_all=`uname -a`; if [[ $arc_all =~ "x86_64" ]]; then xdsh $$CN "echo '* libraries/restart-without-asking boolean true' | debconf-set-selections"; fi; fi
|
||||
|
||||
#Install devel version of xCAT
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat --xcat-version=devel -y install"
|
||||
check:rc==0
|
||||
@ -70,6 +73,9 @@ cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEB
|
||||
#Replace sources.list file on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then code=`lsb_release -sc` && xdsh $$CN "scp -r $$MN:/opt/xcat/share/xcat/tools/autotest/testcase/go_xcat/$code-__GETNODEATTR($$CN,arch)__.sources.list /etc/apt/sources.list"; fi
|
||||
|
||||
#Set flag to accept install dependent packages by default on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then arc_all=`uname -a`; if [[ $arc_all =~ "x86_64" ]]; then xdsh $$CN "echo '* libraries/restart-without-asking boolean true' | debconf-set-selections"; fi; fi
|
||||
|
||||
#Install GA version of xCAT
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
|
||||
check:rc==0
|
||||
@ -112,6 +118,9 @@ cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEB
|
||||
#Replace sources.list file on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then code=`lsb_release -sc` && xdsh $$CN "scp -r $$MN:/opt/xcat/share/xcat/tools/autotest/testcase/go_xcat/$code-__GETNODEATTR($$CN,arch)__.sources.list /etc/apt/sources.list"; fi
|
||||
|
||||
#Set flag to accept install dependent packages by default on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then arc_all=`uname -a`; if [[ $arc_all =~ "x86_64" ]]; then xdsh $$CN "echo '* libraries/restart-without-asking boolean true' | debconf-set-selections"; fi; fi
|
||||
|
||||
#Install GA version of xCAT
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
|
||||
check:rc==0
|
||||
@ -164,6 +173,9 @@ cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEB
|
||||
#Replace sources.list file on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then code=`lsb_release -sc` && xdsh $$CN "scp -r $$MN:/opt/xcat/share/xcat/tools/autotest/testcase/go_xcat/$code-__GETNODEATTR($$CN,arch)__.sources.list /etc/apt/sources.list"; fi
|
||||
|
||||
#Set flag to accept install dependent packages by default on Ubuntu
|
||||
cmd:if grep Ubuntu /etc/*release;then arc_all=`uname -a`; if [[ $arc_all =~ "x86_64" ]]; then xdsh $$CN "echo '* libraries/restart-without-asking boolean true' | debconf-set-selections"; fi; fi
|
||||
|
||||
#Install GA version of xCAT
|
||||
cmd:xdsh $$CN "cd /; ./go-xcat -y install"
|
||||
check:rc==0
|
||||
|
Reference in New Issue
Block a user