Fix IPMI response message for Asset tag
Changes:
The response is:
'Unable to send RAW command (channel=0x0 netfn=0x2c
lun=0x0 cmd=0x8 rsp=0xc9): Parameter out of range: 1 != 0'
which comes from ipmitool .
The ipmitool source code for this message can be viewed at
lib/ipmi_raw.c line 390
The testcase expects this message and tries to match the rsp=0xc9):
Parameter out of range: part.
But it fails because it erroneously expects resp -- whereas ipmitool
will always print rsp here.
So, the Should contain keyword will fail on this typo for any box, any vendor.
Tested:
- NA
Change-Id: Id1ccf5a2e943b0ceb1095c5500dbec3242e1ffac
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ipmi/dcmi/test_dcmi_asset_tag.robot b/ipmi/dcmi/test_dcmi_asset_tag.robot
index 3456afd..757c4b5 100644
--- a/ipmi/dcmi/test_dcmi_asset_tag.robot
+++ b/ipmi/dcmi/test_dcmi_asset_tag.robot
@@ -72,7 +72,7 @@
${cmd}= Catenate ${DCMI_RAW_CMD['DCMI']['Asset_Tag'][1]} 0x${number_of_bytes_to_write} ${random_hex}
${resp}= Run Keyword And Expect Error *
... Run External IPMI Raw Command ${cmd}
- Should Contain ${resp} resp=0xc9): Parameter out of range: ignore_case=True
+ Should Contain ${resp} rsp=0xc9): Parameter out of range: ignore_case=True
Set Valid Asset Tag With DCMI And Verify With Redfish