Skip to content

Commit

Permalink
Merge pull request xcat2#6733 from gurevichmark/go-xcat-sles3
Browse files Browse the repository at this point in the history
Add no-cache option to go-xcat testcases
  • Loading branch information
cxhong authored Jun 16, 2020
2 parents b0eddec + 0bafaab commit a013138
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xCAT-test/autotest/testcase/go_xcat/case3
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ check:rc==0
cmd:if xdsh $$CN "grep \"Red Hat\" /etc/*release >/dev/null"; then xdsh $$CN "yum install -y yum-utils dnf-utils bzip2"; fi

#Pull down core and deps repomd.xml on SLES to prevent caching of the wrong file
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then xdsh $$CN "wget http://xcat.org/files/xcat/repos/yum/devel/core-snap/repodata/repomd.xml"; fi
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then os=`echo __GETNODEATTR($$CN,os)__ | cut -d "." -f1` && xdsh $$CN "wget http://xcat.org/files/xcat/repos/yum/devel/xcat-dep/$os/__GETNODEATTR($$CN,arch)__/repodata/repomd.xml"; fi
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then xdsh $$CN "wget --no-cache http://xcat.org/files/xcat/repos/yum/devel/core-snap/repodata/repomd.xml"; fi
cmd:if xdsh $$CN "grep \"SUSE\" /etc/*release >/dev/null"; then os=`echo __GETNODEATTR($$CN,os)__ | cut -d "." -f1 | sed s/sle1/sles1/` && xdsh $$CN "wget --no-cache http://xcat.org/files/xcat/repos/yum/devel/xcat-dep/$os/__GETNODEATTR($$CN,arch)__/repodata/repomd.xml"; fi

#Install additional packages on Ubuntu
cmd:if xdsh $$CN "grep \"Ubuntu\" /etc/*release >/dev/null"; then xdsh $$CN "DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg"; fi
Expand Down

0 comments on commit a013138

Please sign in to comment.