blob: 5ceb3378f63f20005cf7fe0f4b42c8d41e0bd325 [file] [log] [blame]
George Keishing3794d762018-02-27 00:52:54 -06001*** Settings ***
2Documentation Module to test IPMI cold and warm reset functionalities.
3
4Resource ../../lib/ipmi_client.robot
5Resource ../../lib/openbmc_ffdc.robot
6Resource ../../lib/state_manager.robot
7Resource ../../lib/utils.robot
8Resource ../../lib/boot_utils.robot
9
10Suite Setup Suite Setup Execution
11Test Teardown FFDC On Test Case Fail
12
13*** Variables ***
14
15# User may pass LOOP_COUNT.
16${LOOP_COUNT} ${1}
17
18*** Test Cases ***
19
20Test IPMI Warm Reset
21 [Documentation] Check IPMI warm reset and wait for BMC to become online.
22 [Tags] Test_IPMI_Warm_Reset
23
24 Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Warm (off)
25
26
27Test IPMI Cold Reset
28 [Documentation] Check IPMI cold reset and wait for BMC to become online.
29 [Tags] Test_IPMI_Cold_Reset
30
31 Repeat Keyword ${LOOP_COUNT} times IPMI MC Reset Cold (off)
32
33
34*** Keywords ***
35
36Suite Setup Execution
37 [Documentation] Power off and wait for chassis power to be off.
38
39 ${resp}= Run IPMI Standard Command chassis power off
40 Should Be Equal As Strings ${resp} Chassis Power Control: Down/Off
41 ... msg=Unexpected chassis power control message output.
42
43 Wait Until Keyword Succeeds 3 min 20 sec Is Chassis Power Off
44
45
46Is Chassis Power Off
47 [Documentation] Check for chassis power to be off.
48
49 ${resp}= Run IPMI Standard Command chassis power status
50 Should Be Equal As Strings ${resp} Chassis Power is off
51 ... msg=Chassis power is not off as expected.