2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

Create a test case that exposes the problem in rinv #4236

This commit is contained in:
Victor Hu 2017-11-08 13:35:25 -05:00
parent 12c5fa0d9a
commit de873ca26a

View File

@ -0,0 +1,39 @@
start:rinv_check_active_fw
description: Ensure that there is only 1 active BMC and 1 Active PNOR
os:Linux
mgt:openbmc
cmd:rinv $$CN firm | grep -i ibm
check:rc==0
check:output=~$$CN: BMC Firmware Product
check:rc==0
check:output=~$$CN: HOST Firmware Product
check:rc==0
end
start:rinv_check_active_fw_count
description: Ensure that there are only 2 active firmware (if previous test is OK)
os:Linux
mgt:openbmc
# show the output
cmd:rinv $$CN firm | grep -i ibm
check:rc==0
# check based on wc
cmd:rinv $$CN firm | grep -i ibm | wc -l
check:output=~2
check:rc==0
end
start:rinv_check_active_fw_verbose_count
description: Ensure that there is only 2 active firmware (in verbose mode) (Issue #4236)
os:Linux
mgt:openbmc
# show the output
cmd:rinv $$CN firm -V | grep -i Active
check:rc==0
# validate test cased on word count
cmd:rinv $$CN firm -V | grep -i Active | wc -l
check:rc==0
check:rc==0
check:output=~2
check:rc==0
end