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

Need to backslash the * to make the grep effective

This commit is contained in:
Victor Hu 2017-11-10 14:53:55 -05:00
parent a74cc4263a
commit b95be0f320

View File

@ -3,10 +3,10 @@ description: Ensure that there is only 2 active firmware, one for bmc and one fo
hcp:openbmc
cmd: rinv $$CN firm | tee /tmp/xcattest.rinv_check_active_fw_count.output
check:rc==0
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count.output | grep -i 'HOST Firmware Product' | grep -i 'Active)*' | wc -l
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count.output | grep -i 'HOST Firmware Product' | grep -i 'Active)\*' | wc -l
check:rc==0
check:output=~1
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count.output | grep -i 'BMC Firmware Product'|grep -i 'Active)*' | wc -l
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count.output | grep -i 'BMC Firmware Product'|grep -i 'Active)\*' | wc -l
check:rc==0
check:output=~1
cmd : rm -rf /tmp/xcattest.rinv_check_active_fw_count.output
@ -18,10 +18,10 @@ description: Ensure that there is only 2 active firmware, one for bmc and one fo
hcp:openbmc
cmd: rinv $$CN firm -V | tee /tmp/xcattest.rinv_check_active_fw_count_verbose.output
check:rc==0
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count_verbose.output| grep -i 'HOST Firmware Product' | grep -i 'Active)*' | wc -l
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count_verbose.output| grep -i 'HOST Firmware Product' | grep -i 'Active)\*' | wc -l
check:rc==0
check:output=~1
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count_verbose.output | grep -i 'BMC Firmware Product'|grep -i 'Active)*' | wc -l
cmd: grep -i ibm /tmp/xcattest.rinv_check_active_fw_count_verbose.output | grep -i 'BMC Firmware Product'|grep -i 'Active)\*' | wc -l
check:rc==0
check:output=~1
cmd : rm -rf /tmp/xcattest.rinv_check_active_fw_count_verbose.output