IPMI sensor OCC disable and active fix
Changes:
- Move test at the end and add power on logic.
- Rename the test case and the re-order as disable then enable.
OCC binding happens when host is booted. Currently the test executes
when host is off which resulted in OCC core-dump and test failure.
Resolves openbmc/openbmc#3061
Change-Id: I240403de1ebd0bfb842c127b9aaf16eadae1af7e
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/ipmi/test_sensors_ipmi.robot b/tests/ipmi/test_sensors_ipmi.robot
index e2a66aa..ec18897 100644
--- a/tests/ipmi/test_sensors_ipmi.robot
+++ b/tests/ipmi/test_sensors_ipmi.robot
@@ -329,21 +329,6 @@
Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1}
-OccActive Enable And Disable
- [Documentation] OCC Active Enable And Disable.
- [Tags] OCC_Active_Enable_And_Disable
-
- # Set the OccActive to 1
- Run IPMI Command
- ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
- Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
-
- # Set the OccActive to 0
- Run IPMI Command
- ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
- Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
-
-
Verify IPMI BT Capabilities Command
[Documentation] Verify IPMI BT capability command response.
[Tags] Verify_IPMI_BT_Capabilities_Command
@@ -354,6 +339,23 @@
... msg=Incorrect Output.
+OCC Active Disable And Enable
+ [Documentation] OCC active disable and enable.
+ [Tags] OCC_Active_Disable_And_Enable
+
+ REST Power On stack_mode=skip quiet=1
+
+ # Set the OccActive to 0
+ Run IPMI Command
+ ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
+ Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
+
+ # Set the OccActive to 1
+ Run IPMI Command
+ ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
+ Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
+
+
*** Keywords ***
Check Present Bit