2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #7281 from gurevichmark/more_diskspace3

Free up disk space for regression test on SLES (3)
This commit is contained in:
besawn 2022-11-07 15:24:46 -05:00 committed by GitHub
commit 781f17686c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

@ -139,8 +139,8 @@ check:rc==0
cmd:copycds $$ISO
check:rc==0
#Move .iso out of the way to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then mv $$ISO /home; fi
#On SLES remove rh dependency dirs to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then rm -rf /xcat-dep/rh*; fi
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then mv $rootimgdir $rootimgdir.regbak -f;fi
check:rc==0
@ -217,6 +217,4 @@ cmd:if [[ -f /test.synclist.bak ]] ;then mv -f /test.synclist.bak /test.synclist
cmd:chdef -t osimage -o __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute synclists=
check:rc==0
#Move .iso back
cmd:if [[ "$$OS" =~ "sle" ]]; then mv /home/$$ISO /; fi
end

View File

@ -24,8 +24,8 @@ check:rc==0
cmd:copycds $$ISO
check:rc==0
#Move .iso out of the way to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then mv $$ISO /home; fi
#On SLES remove rh dependency dirs to free up disk space
cmd:if [[ "$$OS" =~ "sle" ]]; then rm -rf /xcat-dep/rh*; fi
cmd:if cat /etc/*release |grep SUSE >/dev/null; then cp /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile_sles.csv /tmp/litefile.csv;tabrestore /tmp/litefile.csv; elif cat /etc/*release |grep "Red Hat\|Rocky" >/dev/null; then tabrestore /opt/xcat/share/xcat/tools/autotest/testcase/installation/litefile.csv;fi
check:rc==0
@ -135,6 +135,4 @@ cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconserverc
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
check:rc==0
#Move .iso back
cmd:if [[ "$$OS" =~ "sle" ]]; then mv /home/$$ISO /; fi
end