blob: e524335eb918a5d44e2cf625e74991a400d66806 [file] [log] [blame]
Sweta Potthuri4a556022017-11-24 04:03:37 -06001*** Settings ***
Steven Sombar5bc33d62018-02-01 06:57:21 -06002Documentation Test IPMI sensor IDs.
Sweta Potthuri4a556022017-11-24 04:03:37 -06003
4Resource ../../lib/rest_client.robot
5Resource ../../lib/ipmi_client.robot
6Resource ../../lib/openbmc_ffdc.robot
7Resource ../../lib/state_manager.robot
8Library ../../data/model.py
9Resource ../../lib/boot_utils.robot
10Resource ../../lib/utils.robot
11
Sweta Potthuri4a556022017-11-24 04:03:37 -060012Test Teardown Test Teardown Execution
13
14*** Test Cases ***
15
16DIMM Present And Not Present
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060017 [Documentation] Verify the IPMI sensor for DIMM3 present and not present.
Sweta Potthuri4a556022017-11-24 04:03:37 -060018 [Tags] DIMM_Present_And_Not_Present
19
20 # Set the dimm3 Present to 1
21 Run IPMI Command
22 ... 0x04 0x30 0xac 0xa9 0x00 0x40 0x00 0x00 0x00 0x00 0x20 0x00
23 Verify The Attribute
24 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${1}
25
26 # Set the dimm3 Present to 0
27 Run IPMI Command
28 ... 0x04 0x30 0xac 0xa9 0xff 0x00 0x00 0x40 0x00 0x00 0x20 0x00
29 Verify The Attribute
30 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3 Present ${0}
31
Steven Sombar5bc33d62018-02-01 06:57:21 -060032
Sweta Potthuri4a556022017-11-24 04:03:37 -060033DIMM Functional And Not Functional
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060034 [Documentation] Verify that the DIMM3 is functional.
Sweta Potthuri4a556022017-11-24 04:03:37 -060035 [Tags] DIMM_Functional_And_Not_Functional
36
37 # Set the dimm3 Functional to 0
38 Run IPMI Command
39 ... 0x04 0x30 0xac 0x00 0x00 0x10 0x00 0x00 0x00 0x00 0x20 0x00
40 Verify The Attribute
41 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
42 ... Functional ${0}
Sweta Potthuri4a556022017-11-24 04:03:37 -060043 # Set the dimm3 Functional to 1
44 Run IPMI Command
45 ... 0x04 0x30 0xac 0x00 0x00 0x00 0x00 0x10 0x00 0x00 0x20 0x00
46 Verify The Attribute
47 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/dimm3
48 ... Functional ${1}
49
Steven Sombar5bc33d62018-02-01 06:57:21 -060050
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060051CPU Functional
52 [Documentation] Verify the IPMI sensor for CPU functional.
George Keishing5abfe602018-07-05 11:54:37 -050053 [Tags] CPU_Functional
54 [Template] Check Functional Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -060055
Steven Sombar5bc33d62018-02-01 06:57:21 -060056 # sensor_id component
57 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060058
Steven Sombar5bc33d62018-02-01 06:57:21 -060059
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060060CPU Not Functional
61 [Documentation] Verify the IPMI sensor for CPU not functional.
George Keishing5abfe602018-07-05 11:54:37 -050062 [Tags] CPU_Not_Functional
63 [Template] Check Not Functional Bit
Sweta Potthuri4a556022017-11-24 04:03:37 -060064
Steven Sombar5bc33d62018-02-01 06:57:21 -060065 # sensor_id component
66 0x5a cpu0
Sweta Potthuri4a556022017-11-24 04:03:37 -060067
Steven Sombar5bc33d62018-02-01 06:57:21 -060068
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060069GPU Functional
70 [Documentation] Verify the IPMI sensor GPU for functional.
George Keishing5abfe602018-07-05 11:54:37 -050071 [Tags] GPU_Functional
72 [Template] Check Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060073
Steven Sombar5bc33d62018-02-01 06:57:21 -060074 # sensor_id component
75 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060076
Steven Sombar5bc33d62018-02-01 06:57:21 -060077
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060078GPU Not Functional
79 [Documentation] Verify the IPMI sensor GPU for not functional.
George Keishing5abfe602018-07-05 11:54:37 -050080 [Tags] GPU_Not_Functional
81 [Template] Check Not Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060082
Steven Sombar5bc33d62018-02-01 06:57:21 -060083 # sensor_id component
84 0xC5 gv100card0
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060085
Steven Sombar5bc33d62018-02-01 06:57:21 -060086
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060087Core Present
88 [Documentation] Verify the IPMI sensor for core present.
George Keishing5abfe602018-07-05 11:54:37 -050089 [Tags] Core_Present
90 [Template] Check Present Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060091
Steven Sombar5bc33d62018-02-01 06:57:21 -060092 # sensor_id component
93 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060094
Steven Sombar5bc33d62018-02-01 06:57:21 -060095
Sweta Potthuri09a3cf92017-12-08 01:19:53 -060096Core Not Present
97 [Documentation] Verify the IPMI sensor for core not present.
George Keishing5abfe602018-07-05 11:54:37 -050098 [Tags] Core_Not_Present
99 [Template] Check Not Present Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600100
Steven Sombar5bc33d62018-02-01 06:57:21 -0600101 # sensor_id component
102 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600103
Steven Sombar5bc33d62018-02-01 06:57:21 -0600104
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600105Core Functional
106 [Documentation] Verify the IPMI sensor for core functional.
George Keishing5abfe602018-07-05 11:54:37 -0500107 [Tags] Core_Functional
108 [Template] Check Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600109
Steven Sombar5bc33d62018-02-01 06:57:21 -0600110 # sensor_id component
111 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600112
Steven Sombar5bc33d62018-02-01 06:57:21 -0600113
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600114Core Not Functional
115 [Documentation] Verify the IPMI sensor for core not functional.
George Keishing5abfe602018-07-05 11:54:37 -0500116 [Tags] Core_Not_Functional
117 [Template] Check Not Functional Bit
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600118
Steven Sombar5bc33d62018-02-01 06:57:21 -0600119 # sensor_id component
120 0x1e cpu0/core4
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600121
Steven Sombar5bc33d62018-02-01 06:57:21 -0600122
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600123# Operating System State Test Cases.
124
125Set BootProgress To OSStart And Verify
126 [Documentation] Set BootProgress To OSStart and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500127 [Tags] Set_BootProgress_To_OSStart_And_Verify
128 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600129
130 # BootProgressID BootProgress
131 0x13 ${OS_BOOT_START}
132
Steven Sombar5bc33d62018-02-01 06:57:21 -0600133
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600134Set OperatingSystemState To CBoot And Verify
135 [Documentation] Set Operating System State to "CBoot"
136 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500137 [Tags] Set_OperatingSystemState_To_CBoot_And_Verify
138 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600139
140 # OperatingSystemStateID OperatingSystemState
George Keishing81be58b2023-02-10 00:59:29 -0600141 0x02 ${OS_BOOT_CBOOT}
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600142
Steven Sombar5bc33d62018-02-01 06:57:21 -0600143
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600144Set OperatingSystemState To PXEBoot And Verify
145 [Documentation] Set Operating System State to "PXEBoot"
146 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500147 [Tags] Set_OperatingSystemState_To_PXEBoot_And_Verify
148 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600149
150 # OperatingSystemStateID OperatingSystemState
151 0x05 ${OS_BOOT_PXE}
152
Steven Sombar5bc33d62018-02-01 06:57:21 -0600153
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600154Set OperatingSystemState To BootComplete And Verify
155 [Documentation] Set Operating System State to "BootComplete"
156 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500157 [Tags] Set_OperatingSystemState_To_BootComplete_And_Verify
158 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600159
160 # OperatingSystemStateID OperatingSystemState
161 0x40 ${OS_BOOT_COMPLETE}
162
Steven Sombar5bc33d62018-02-01 06:57:21 -0600163
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600164Set OperatingSystemState To CDROMBoot And Verify
165 [Documentation] Set Operating System State to "CDROMBoot"
166 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500167 [Tags] Set_OperatingSystemState_To_CDROMBoot_And_Verify
168 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600169
170 # OperatingSystemStateID OperatingSystemState
171 0x10 ${OS_BOOT_CDROM}
172
Steven Sombar5bc33d62018-02-01 06:57:21 -0600173
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600174Set OperatingSystemState To ROMBoot And Verify
175 [Documentation] Set Operating System State to "ROMBoot"
176 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500177 [Tags] Set_OperatingSystemState_To_ROMBoot_And_Verify
178 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600179
180 # OperatingSystemStateID OperatingSystemState
181 0x20 ${OS_BOOT_ROM}
182
Steven Sombar5bc33d62018-02-01 06:57:21 -0600183
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600184Set OperatingSystemState To DiagBoot And Verify
185 [Documentation] Set Operating System State to "DiagBoot"
186 ... and verify using REST.
George Keishing5abfe602018-07-05 11:54:37 -0500187 [Tags] Set_OperatingSystemState_To_DiagBoot_And_Verify
188 [Template] Check OperatingSystemState
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600189
190 # OperatingSystemStateID OperatingSystemState
George Keishing81be58b2023-02-10 00:59:29 -0600191 0x08 ${OS_BOOT_DIAGBOOT}
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600192
Steven Sombar5bc33d62018-02-01 06:57:21 -0600193
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600194# Boot Progress Test Cases.
195
196Set BootProgress To MemoryInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600197 [Documentation] Set BootProgress to "MemoryInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500198 [Tags] Set_BootProgress_To_MemoryInit_And_Verify
199 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600200
201 # BootProgressID BootProgress
202 0x01 ${OS_BOOT_MEM}
203
Steven Sombar5bc33d62018-02-01 06:57:21 -0600204
George Keishinge15ebb92018-01-29 12:42:46 -0600205Set BootProgress To MotherboardInit And Verify
206 [Documentation] Set BootProgress to "MotherboardInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500207 [Tags] Set_BootProgress_To_MotherboardInit_And_Verify
208 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600209
210 # BootProgressID BootProgress
211 0x14 ${OS_BOOT_MOTHERBOARD}
212
Steven Sombar5bc33d62018-02-01 06:57:21 -0600213
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600214Set BootProgress To SecondaryProcInit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600215 [Documentation] Set BootProgress to "SecondaryProcInit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500216 [Tags] Set_BootProgress_To_SecondaryProcInit_And_Verify
217 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600218
219 # BootProgressID BootProgress
220 0x03 ${OS_BOOT_SECPCI}
221
Steven Sombar5bc33d62018-02-01 06:57:21 -0600222
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600223Set BootProgress To PCIinit And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600224 [Documentation] Set BootProgress to "PCIinit" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500225 [Tags] Set_BootProgress_To_PCIinit_And_Verify
226 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600227
228 #BootProgressID BootProgress
229 0x07 ${OS_BOOT_PCI}
230
Steven Sombar5bc33d62018-02-01 06:57:21 -0600231
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600232Set BootProgress To Unspecified And Verify
George Keishinge15ebb92018-01-29 12:42:46 -0600233 [Documentation] Set BootProgress to "Unspecified" and verify.
George Keishing5abfe602018-07-05 11:54:37 -0500234 [Tags] Set_BootProgress_To_Unspecified_And_Verify
235 [Template] Check BootProgress
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600236
237 # BootProgressID BootProgress
238 0x00 ${OS_BOOT_OFF}
239
Steven Sombar5bc33d62018-02-01 06:57:21 -0600240
Sweta Potthuri4a556022017-11-24 04:03:37 -0600241TPM Enable and Disable
242 [Documentation] Enable and disable TPM.
243 [Tags] TPM_Enable_and_Disable
244
245 # Set the TPMEnable to 0
246 Run IPMI Command
247 ... 0x04 0x30 0xD7 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
248 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${0}
249
250 # Set the TPMEnable to 1
251 Run IPMI Command
252 ... 0x04 0x30 0xD7 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
253 Verify The Attribute ${CONTROL_URI}/host0/TPMEnable TPMEnable ${1}
254
Steven Sombar5bc33d62018-02-01 06:57:21 -0600255
Sweta Potthuri4a556022017-11-24 04:03:37 -0600256Autoreboot Enable and Disable
257 [Documentation] Enable and disable Autoreboot.
258 [Tags] Autoreboot_Enable_and_Disable
259
260 # Set the TPMEnable to 0
261 Run IPMI Command
262 ... 0x04 0x30 0xDA 0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x20 0x00
263 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${0}
264
265 # Set the TPMEnable to 1
266 Run IPMI Command
267 ... 0x04 0x30 0xDA 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x20 0x00
268 Verify The Attribute ${CONTROL_URI}/host0/auto_reboot AutoReboot ${1}
269
Steven Sombar5bc33d62018-02-01 06:57:21 -0600270
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600271Verify IPMI BT Capabilities Command
272 [Documentation] Verify IPMI BT capability command response.
273 [Tags] Verify_IPMI_BT_Capabilities_Command
George Keishingb8fac4f2018-07-19 10:52:02 -0500274 [Setup] Run Keywords REST Hard Power Off AND REST Power On
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600275
George Keishingfb218a12018-11-28 11:20:42 -0600276 ${output}= Run IPMI command 0x06 0x36
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600277 Should Be True "${output}" == " 01 3f 3f 0a 01"
278 ... msg=Incorrect Output.
Sweta Potthuri4a556022017-11-24 04:03:37 -0600279
Steven Sombar5bc33d62018-02-01 06:57:21 -0600280
George Keishinge07bc882018-04-02 13:22:24 -0500281OCC Active Disable And Enable
282 [Documentation] OCC active disable and enable.
283 [Tags] OCC_Active_Disable_And_Enable
284
285 REST Power On stack_mode=skip quiet=1
286
287 # Set the OccActive to 0
288 Run IPMI Command
289 ... 0x04 0x30 0x08 0xa8 0x00 0x01 0x00 0x02 0x00 0x00 0x00 0x00
290 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${0}
291
292 # Set the OccActive to 1
293 Run IPMI Command
294 ... 0x04 0x30 0x08 0xa8 0x00 0x02 0x00 0x01 0x00 0x00 0x00 0x00
295 Verify The Attribute ${OPENPOWER_CONTROL}/occ0 OccActive ${1}
296
297
Sweta Potthuri4a556022017-11-24 04:03:37 -0600298*** Keywords ***
299
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600300Check Present Bit
301 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600302 [Arguments] ${sensor_id} ${component}
303
304 # Description of argument(s):
305 # sensor_id Corresponding to OperatingSystemState.
306 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600307
308 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600309 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x80 0x00 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600310 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600311 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
312 ... Present ${1}
313
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600314
315Check Not Present Bit
316 [Documentation] Set the present field to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600317 [Arguments] ${sensor_id} ${component}
318
319 # Description of argument(s):
320 # sensor_id Corresponding to OperatingSystemState.
321 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600322
323 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600324 ... 0x04 0x30 ${sensor_id} 0xa9 0x00 0x00 0x00 0x80 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600325 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600326 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
327 ... Present ${0}
328
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600329
330Check Functional Bit
331 [Documentation] Set the functional to 1 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600332 [Arguments] ${sensor_id} ${component}
333
334 # Description of argument(s):
335 # sensor_id Corresponding to OperatingSystemState.
336 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600337
338 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600339 ... 0x04 0x30 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600340 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600341 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
342 ... Functional ${1}
343
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600344
345Check Not Functional Bit
346 [Documentation] Set the functional to 0 and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600347 [Arguments] ${sensor_id} ${component}
348
349 # Description of argument(s):
350 # sensor_id Corresponding to OperatingSystemState.
351 # component Component name.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600352
353 Run IPMI Command
Steven Sombar5bc33d62018-02-01 06:57:21 -0600354 ... 0x04 0x30 ${sensor_id} 0xa9 0xff 0x00 0x01 0x00 0x00 0x00 0x20 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600355 Verify The Attribute
Steven Sombar5bc33d62018-02-01 06:57:21 -0600356 ... ${HOST_INVENTORY_URI}system/chassis/motherboard/${component}
357 ... Functional ${0}
358
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600359
360Check OperatingSystemState
361 [Documentation] Set OperatingSystemState and verify.
Steven Sombar5bc33d62018-02-01 06:57:21 -0600362 [Arguments] ${sensor_id} ${OperatingSystemState}
363
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600364 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600365 # sensor_id Corresponding to OperatingSystemState.
366 # OperatingSystemState OperatingSystemState to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600367
368 Run IPMI Command
369 ... 0x04 0x30 0x05 0xa9 0x00 ${sensor_id} 0x00 0x00 0x00 0x00 0x00 0x00
370 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 OperatingSystemState
371 Should Be Equal ${OperatingSystemState} ${resp}
372
Steven Sombar5bc33d62018-02-01 06:57:21 -0600373
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600374Check BootProgress
375 [Documentation] Set the Bootprogress and verify.
376 [Arguments] ${BootProgressID} ${BootProgress}
Steven Sombar5bc33d62018-02-01 06:57:21 -0600377
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600378 # Description of argument(s):
Steven Sombar5bc33d62018-02-01 06:57:21 -0600379 # BootProgressID Corresponding to BootProgress.
380 # BootProgress BootProgress to be set.
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600381
382 Run IPMI Command
George Keishingc49b3192018-02-09 02:00:35 -0600383 ... 0x04 0x30 0x03 0xa8 0x00 0x04 0x00 0x00 0x00 0x00 ${BootProgressID} 0x00
Sweta Potthuri09a3cf92017-12-08 01:19:53 -0600384 ${resp}= Read Attribute ${SYSTEM_STATE_URI}/host0 BootProgress
385 Should Be Equal ${BootProgress} ${resp}
386
Steven Sombar5bc33d62018-02-01 06:57:21 -0600387
Sweta Potthuri4a556022017-11-24 04:03:37 -0600388Test Teardown Execution
389 [Documentation] Do the post test teardown.
390 ... 1. Capture FFDC on test failure.
391 ... 2. Close all open SSH connections.
392
393 FFDC On Test Case Fail
Sweta Potthuri4a556022017-11-24 04:03:37 -0600394