mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
refine installation testcase for issue:2834
This commit is contained in:
@ -76,12 +76,8 @@ check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~compute/rootimg on / type nfs
|
||||
cmd:xdsh $$CN "cat /var/log/xcat/xcat.log"
|
||||
cmd:xdsh $$CN "echo "test"> /test.statelite"
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN cat /test.statelite
|
||||
check:rc==0
|
||||
check:output=~test
|
||||
cmd:xdsh $$CN rm -rf /test.statelite
|
||||
check:rc==0
|
||||
check:rc!=0
|
||||
cmd:output=$(xdsh $$CN ls -al / |grep test.statelite);if [[ $? -eq 0 ]];then xdsh $$CN rm -rf /test.tatelite;fi
|
||||
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$CN,os)__-__GETNODEATTR($$CN,arch)__-statelite-compute|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir ]; then rm -rf $rootimgdir;fi
|
||||
check:rc==0
|
||||
|
||||
|
Reference in New Issue
Block a user