2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Verify xcatprobe -l output

This commit is contained in:
Mark Gurevich 2019-05-13 10:33:30 -04:00
parent 6ea2ffcee1
commit 520651eef1

View File

@ -1,15 +1,13 @@
start:xcatprobe_work
description:To test if xcatprobe list works. This case must run in xcat mn
label:mn_only,ci_test
cmd:mkdir -p /tmp/xcatprobe_l
cmd:xcatprobe -l
check:rc==0
check:output=~Supported sub commands are:
check:output=~detect_dhcp
check:output=~osdeploy
check:output=~nodecheck
check:output=~xcatmn
check:output=~osimagecheck
check:output=~discovery
check:output=~image
check:output=~clusterstatus
check:output=~switch_macmap
cmd:xcatprobe -l|grep -v "Supported sub commands are" |awk '/^[[:graph:]]/ {print $1}'|sort > /tmp/xcatprobe_l/subcmd_from_xcatprobe_l
cmd:ls -l /opt/xcat/probe/subcmds/ |awk '/^-/ {print $9}'|sort > /tmp/xcatprobe_l/subcmd_under_subcmds_dir
cmd:diff -y /tmp/xcatprobe_l/subcmd_from_xcatprobe_l /tmp/xcatprobe_l/subcmd_under_subcmds_dir
check:rc==0
cmd:rm -rf /tmp/xcatprobe_l
end