mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Merge pull request #7033 from gurevichmark/cleanxcatpost_diskless
Add genimage/packimage to cleanup_postscripts_diskless testcase
This commit is contained in:
commit
930659e90c
@ -42,6 +42,11 @@ start:cleanup_postscripts_diskless
|
||||
os:Linux
|
||||
label:provision
|
||||
description: Verify postscripts cleaned up after diskless installation
|
||||
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
|
||||
cmd:genimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
cmd:packimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute
|
||||
check:rc==0
|
||||
cmd:chdef -t site clustersite cleanupxcatpost="yes"
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/commoncmd/retry_install.sh $$CN __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute 1
|
||||
check:rc==0
|
||||
@ -58,4 +63,6 @@ cmd:xdsh $$CN ls /xcatpost | wc -l
|
||||
check:rc==0
|
||||
check:output==0
|
||||
cmd:chdef -t site clustersite cleanupxcatpost="no"
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-netboot-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.regbak ]; then rm -rf $rootimgdir; mv $rootimgdir.regbak $rootimgdir; fi
|
||||
check:rc==0
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user