From a6e08e4229ec821ba885114185b0f50478e6f285 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Tue, 25 Oct 2022 15:24:27 -0400 Subject: [PATCH] Free up disk space for regression test on SLES --- .../installation/reg_linux_diskless_installation_flat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-test/autotest/testcase/installation/reg_linux_diskless_installation_flat b/xCAT-test/autotest/testcase/installation/reg_linux_diskless_installation_flat index 2c0a0252a..94eb5c646 100644 --- a/xCAT-test/autotest/testcase/installation/reg_linux_diskless_installation_flat +++ b/xCAT-test/autotest/testcase/installation/reg_linux_diskless_installation_flat @@ -139,6 +139,9 @@ 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 + 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 cmd:if [[ -f /test.synclist ]] ;then mv -f /test.synclist /test.synclist.bak;fi; @@ -213,4 +216,7 @@ cmd:if [ -x /usr/bin/goconserver ]; then makegocons -d $$CN; else makeconserverc cmd:if [[ -f /test.synclist.bak ]] ;then mv -f /test.synclist.bak /test.synclist;else rm -rf /test.synclist;fi 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