mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-19 12:50:49 +00:00
check sync file and change case number
This commit is contained in:
@ -944,7 +944,7 @@ sub creat_report{
|
||||
$batbundle="$xcatcoredir/xCAT-test/autotest/bundle/p_sles_cmd.bundle" if($k =~ /slesp/);
|
||||
$batbundle="$xcatcoredir/xCAT-test/autotest/bundle/x_sles_cmd.bundle" if($k =~ /slesx/);
|
||||
$totalcase=`cat $batbundle|wc -l`;
|
||||
$totalcase+=7;
|
||||
$totalcase+=8;
|
||||
}elsif($k =~ /ubuntux/){
|
||||
$batbundle="/$xcatcoredir/xCAT-test/autotest/bundle/x_ubuntu_cmd.bundle";
|
||||
$totalcase=`cat $batbundle|wc -l`;
|
||||
|
@ -1,8 +1,6 @@
|
||||
start:reg_linux_statelite_installation_hierarchy_by_nfs
|
||||
os:Linux
|
||||
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`;sed -i "s:nameserver .*:nameserver $MNIP:g" /etc/resolv.conf
|
||||
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
@ -93,6 +91,9 @@ cmd:xdsh $$CN mount
|
||||
check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~compute/rootimg on / type nfs
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`; result=`xdsh $$CN "cat /etc/resolv.conf|grep $MNIP"`; if [ "$result" = "$$CN: nameserver $MNIP" ]; then echo "sync file works well"; fi;
|
||||
check:rc==0
|
||||
check:output=~sync file works well
|
||||
|
||||
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
|
||||
|
@ -1,8 +1,6 @@
|
||||
start:reg_linux_statelite_installation_hierarchy_by_ramdisk
|
||||
os:Linux
|
||||
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`;sed -i "s:nameserver .*:nameserver $MNIP:g" /etc/resolv.conf
|
||||
|
||||
cmd:chdef -t node -o $$CN servicenode=$$SN monserver=$$SN nfsserver=$$SN tftpserver=$$SN xcatmaster=$$SN
|
||||
check:rc==0
|
||||
cmd:chdef -t node $$SN groups=service,all
|
||||
@ -95,6 +93,9 @@ cmd:xdsh $$CN mount
|
||||
check:rc==0
|
||||
check:output=~/nodedata/$$CN on /.statelite/persistent
|
||||
check:output=~rootfs on / type
|
||||
cmd:MNIP=`cat /etc/hosts|grep $$MN|awk '{print $1}'`; result=`xdsh $$CN "cat /etc/resolv.conf|grep $MNIP"`; if [ "$result" = "$$CN: nameserver $MNIP" ]; then echo "sync file works well"; fi;
|
||||
check:rc==0
|
||||
check:output=~sync file works well
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user