Modified Get Partial SDR raw command.
We have to get the SDR record data from offset 0x01 for partial get SDR,
previously code was having 0x00 offset.
Tested: Run robot ipmi/test_ipmi_inband_sdr.robot
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
Change-Id: I3508c843933a604ef29e7dd5168c64e8faf41c77
diff --git a/ipmi/test_ipmi_inband_sdr.robot b/ipmi/test_ipmi_inband_sdr.robot
index 6e682be..9940423 100644
--- a/ipmi/test_ipmi_inband_sdr.robot
+++ b/ipmi/test_ipmi_inband_sdr.robot
@@ -211,7 +211,7 @@
# Check whether the response for Get device SDR command is obtained with the given Reservation ID.
${resp}= Run Inband IPMI Standard Command
- ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x00 0x0f
+ ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x01 0x0f
${resp}= Split String ${resp}
# Record data starts from ${resp[2]}.
${resp}= Set Variable ${resp[2:]}
@@ -230,7 +230,7 @@
# Check whether the response for Get device SDR command is obtained with the given Reservation ID.
${resp1}= Run Inband IPMI Standard Command
- ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x00 0x0f
+ ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x01 0x0f
# Reboot bmc.
IPMI MC Reset Cold (run)
@@ -239,7 +239,7 @@
# Reserve IDs are volatile so once bmc is rebooted, new Reserve ID should be generated.
${resp2}= Run Keyword and Expect Error *${IPMI_RAW_CMD['Device_SDR']['Reserve_Repository'][5]}*
... Run Inband IPMI Standard Command
- ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x00 0x0f
+ ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x01 0x0f
Verify Reserve Device SDR Repository Invalid Reservation ID For Partial Record
@@ -258,7 +258,7 @@
# Once Reservation ID is overwritten, old Reservation ID will be invalid.
${resp1}= Run Keyword and Expect Error *${IPMI_RAW_CMD['Device_SDR']['Reserve_Repository'][5]}*
... Run Inband IPMI Standard Command
- ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x00 0x0f
+ ... raw ${IPMI_RAW_CMD['Device_SDR']['Get'][0]} 0x${reserve_id[0]} 0x${reserve_id[1]} 0x00 0x00 0x01 0x0f
Verify Get Device SDR For Maximum Record Via IPMI
@@ -498,4 +498,4 @@
Redfish.Login
Should Not Be Empty ${OS_HOST} msg=Please provide required parameter OS_HOST
Should Not Be Empty ${OS_USERNAME} msg=Please provide required parameter OS_USERNAME
- Should Not Be Empty ${OS_PASSWORD} msg=Please provide required parameter OS_PASSWORD
+ Should Not Be Empty ${OS_PASSWORD} msg=Please provide required parameter OS_PASSWORD
\ No newline at end of file