2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-20 03:21:10 +00:00

update according to comments

This commit is contained in:
litingt
2019-01-16 21:29:19 -05:00
parent eac2932826
commit 5c8b82cd49

View File

@@ -536,11 +536,15 @@ cmd:dir="/tmp/rflashdir";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi
cmd:mkdir -p /tmp/rflashdir;touch /tmp/rflashdir/witherspoon.pnor.squashfs.tar
cmd:cd /tmp;rflash testnode ./rflashdir -d
check:rc != 0
check:output =~~testnode\s*:\s*Error:\s*Unable to resolved ip address for bmc:\s*testnode-bmc
check:output =~Error:\s*\[.*?\]:\s*No BMC tar file found in ./rflashdir
check:output =~Error:\s*\[.*?\]:\s*No Host tar file found in ./rflashdir
check:output =~testnode\s*:\s*Error:\s*Unable to resolved ip address for bmc:\s*testnode-bmc
cmd:dir="/tmp/rflashnotexist/";if [ -e "${dir}" ];then mv ${dir} ${dir}".bak"; fi
cmd:cd /tmp;rflash testnode ./rflashnotexist -d
check:rc != 0
check:output =~~testnode\s*:\s*Error:\s*Invalid option specified with -d:\s*./rflashnotexist
check:output =~testnode\s*:\s*Error:\s*Invalid option specified with -d:\s*./rflashnotexist
cmd:dir="/tmp/rflashnotexist"; if [ -d ${dir}".bak" ];then mv ${dir}".bak" $dir; fi
cmd:dir="/tmp/rflashdir"; if [ -d ${dir}".bak" ];then mv ${dir}".bak" $dir; fi
cmd:rmdef -t node -o testnode
check:rc == 0
end