blob: 039decb8769dcfad42ca946d9a03a05d3b8d46a3 [file] [log] [blame]
George Keishingeefc07a2016-07-26 03:25:35 -05001*** Settings ***
George Keishing0a46d022017-01-30 08:11:43 -06002Documentation Test power on for HW CI.
George Keishingeefc07a2016-07-26 03:25:35 -05003
George Keishingd55a4be2016-08-26 03:28:17 -05004Resource ../lib/openbmc_ffdc.robot
George Keishing97e96532016-10-06 12:44:52 -05005Resource ../lib/utils.robot
George Keishing0a46d022017-01-30 08:11:43 -06006Resource ../lib/state_manager.robot
George Keishing97e96532016-10-06 12:44:52 -05007
8Test Setup Start SOL Console Logging
9Test Teardown Test Exit Logs
George Keishing83ada4f2016-08-09 03:15:08 -050010
causten147f5752016-08-11 16:24:45 -050011Force Tags chassisboot
George Keishingeefc07a2016-07-26 03:25:35 -050012
George Keishing0af24412017-03-10 13:33:23 -060013*** Variables ***
14
15# User may pass LOOP_COUNT.
16# By default 2 cycle for CI/CT.
17${LOOP_COUNT} ${2}
18
Gunnar Mills7c8923f2016-12-12 21:19:52 -060019*** Test Cases ***
George Keishingeefc07a2016-07-26 03:25:35 -050020
George Keishing0a46d022017-01-30 08:11:43 -060021Power On Test
22 [Documentation] Power off and on.
23 [Tags] Power_On_Test
George Keishingeefc07a2016-07-26 03:25:35 -050024
George Keishing0af24412017-03-10 13:33:23 -060025 Repeat Keyword ${LOOP_COUNT} times Host Off And On
George Keishing97e96532016-10-06 12:44:52 -050026
27*** Keywords ***
George Keishing0a46d022017-01-30 08:11:43 -060028
George Keishing97e96532016-10-06 12:44:52 -050029Test Exit Logs
George Keishing0a46d022017-01-30 08:11:43 -060030 [Documentation] Collect FFDC and SOL log.
Gunnar Millseac1af22016-11-14 15:30:09 -060031 FFDC On Test Case Fail
George Keishing97e96532016-10-06 12:44:52 -050032 ${sol_log}= Stop SOL Console Logging
33 Log ${sol_log}
George Keishing0af24412017-03-10 13:33:23 -060034
35Host 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