2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-23 19:50:21 +00:00

Add more log for SN setup test cases (#5070)

This commit is contained in:
Weihua Hu
2018-04-10 10:17:26 +08:00
committed by Bin Xu
parent df93416a91
commit aef3850b0e
2 changed files with 2 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ cmd:xdsh $$SN "service httpd status"
check:rc==0
cmd:xdsh $$SN "service systemd status"
#check:rc==0
cmd:xdsh $$SN "cat /var/log/xcat/xcat.log"
cmd:rootimgdir=`lsdef -t osimage __GETNODEATTR($$SN,os)__-__GETNODEATTR($$SN,arch)__-netboot-service|grep rootimgdir|awk -F'=' '{print $2}'`; if [ -d $rootimgdir.org ]; then rm -rf $rootimgdir; mv $rootimgdir.org $rootimgdir; fi
check:rc==0
cmd:xdsh $$SN "cat /var/log/xcat/xcat.log"

View File

@@ -90,7 +90,7 @@ check:output=~/install on /install
cmd:xdsh $$SN "mount"
check:rc==0
check:output=~/tftpboot on /tftpboot
cmd:xdsh $$SN "cat /var/log/xcat/xcat.log"
cmd:if [[ "__GETNODEATTR($$SN,arch)__" =~ "x86_64" ]]; then if [[ "__GETNODEATTR($$SN,os)__" =~ "sles" ]];then xdsh $$SN "zypper -n install perl-Sys-Virt"; elif [[ "__GETNODEATTR($$SN,os)__" =~ "rh" ]];then xdsh $$SN "yum install -y perl-Sys-Virt";fi;fi
check:rc==0
cmd:makentp -a