George Keishing | eefc07a | 2016-07-26 03:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
George Keishing | 0a46d02 | 2017-01-30 08:11:43 -0600 | [diff] [blame] | 2 | Documentation Test power on for HW CI. |
George Keishing | eefc07a | 2016-07-26 03:25:35 -0500 | [diff] [blame] | 3 | |
George Keishing | d55a4be | 2016-08-26 03:28:17 -0500 | [diff] [blame] | 4 | Resource ../lib/openbmc_ffdc.robot |
George Keishing | 97e9653 | 2016-10-06 12:44:52 -0500 | [diff] [blame] | 5 | Resource ../lib/utils.robot |
George Keishing | 0a46d02 | 2017-01-30 08:11:43 -0600 | [diff] [blame] | 6 | Resource ../lib/state_manager.robot |
George Keishing | 97e9653 | 2016-10-06 12:44:52 -0500 | [diff] [blame] | 7 | |
| 8 | Test Setup Start SOL Console Logging |
| 9 | Test Teardown Test Exit Logs |
George Keishing | 83ada4f | 2016-08-09 03:15:08 -0500 | [diff] [blame] | 10 | |
causten | 147f575 | 2016-08-11 16:24:45 -0500 | [diff] [blame] | 11 | Force Tags chassisboot |
George Keishing | eefc07a | 2016-07-26 03:25:35 -0500 | [diff] [blame] | 12 | |
George Keishing | 0af2441 | 2017-03-10 13:33:23 -0600 | [diff] [blame] | 13 | *** Variables *** |
| 14 | |
| 15 | # User may pass LOOP_COUNT. |
| 16 | # By default 2 cycle for CI/CT. |
| 17 | ${LOOP_COUNT} ${2} |
| 18 | |
Gunnar Mills | 7c8923f | 2016-12-12 21:19:52 -0600 | [diff] [blame] | 19 | *** Test Cases *** |
George Keishing | eefc07a | 2016-07-26 03:25:35 -0500 | [diff] [blame] | 20 | |
George Keishing | 0a46d02 | 2017-01-30 08:11:43 -0600 | [diff] [blame] | 21 | Power On Test |
| 22 | [Documentation] Power off and on. |
| 23 | [Tags] Power_On_Test |
George Keishing | eefc07a | 2016-07-26 03:25:35 -0500 | [diff] [blame] | 24 | |
George Keishing | 0af2441 | 2017-03-10 13:33:23 -0600 | [diff] [blame] | 25 | Repeat Keyword ${LOOP_COUNT} times Host Off And On |
George Keishing | 97e9653 | 2016-10-06 12:44:52 -0500 | [diff] [blame] | 26 | |
| 27 | *** Keywords *** |
George Keishing | 0a46d02 | 2017-01-30 08:11:43 -0600 | [diff] [blame] | 28 | |
George Keishing | 97e9653 | 2016-10-06 12:44:52 -0500 | [diff] [blame] | 29 | Test Exit Logs |
George Keishing | 0a46d02 | 2017-01-30 08:11:43 -0600 | [diff] [blame] | 30 | [Documentation] Collect FFDC and SOL log. |
Gunnar Mills | eac1af2 | 2016-11-14 15:30:09 -0600 | [diff] [blame] | 31 | FFDC On Test Case Fail |
George Keishing | 97e9653 | 2016-10-06 12:44:52 -0500 | [diff] [blame] | 32 | ${sol_log}= Stop SOL Console Logging |
| 33 | Log ${sol_log} |
George Keishing | 0af2441 | 2017-03-10 13:33:23 -0600 | [diff] [blame] | 34 | |
| 35 | Host Off And On |
| 36 | [Documentation] Verify power off and on. |
| 37 | |
| 38 | Initiate Host PowerOff |
| 39 | Wait Until Keyword Succeeds 5 min 10 sec Is OS Off |
| 40 | |
| 41 | Initiate Host Boot |
| 42 | Wait Until Keyword Succeeds 10 min 10 sec Is OS Starting |