From 76ef2ba9477f0b325a37ee6f97c8633d35a13da0 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Tue, 7 Apr 2020 17:02:07 -0400 Subject: [PATCH] go-xcat testcase on Ubuntu to accept default package installation --- xCAT-test/autotest/testcase/go_xcat/case3 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xCAT-test/autotest/testcase/go_xcat/case3 b/xCAT-test/autotest/testcase/go_xcat/case3 index c2d9cb2ef..7a080c28c 100644 --- a/xCAT-test/autotest/testcase/go_xcat/case3 +++ b/xCAT-test/autotest/testcase/go_xcat/case3 @@ -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