Jay Azurin | e4c52eb | 2016-08-16 20:51:10 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This testsuite updates the PNOR image on the host for |
| 3 | ... hostboot CI purposes. |
| 4 | |
| 5 | Resource ../lib/utils.robot |
| 6 | Resource ../lib/connection_client.robot |
| 7 | |
| 8 | *** Variables *** |
| 9 | |
| 10 | *** Test Cases *** |
| 11 | |
| 12 | Host BIOS Update And Boot |
| 13 | [Tags] open-power |
| 14 | [Documentation] This test updates the PNOR image on the host (BIOS), and |
| 15 | ... validates that hosts boots normally. |
| 16 | Reach System Steady State |
| 17 | Update PNOR Image |
| 18 | Validate IPL |
| 19 | |
| 20 | *** Keywords *** |
| 21 | |
| 22 | Reach System Steady State |
| 23 | [Documentation] Reboot the BMC, power off the Host and clear any previous |
| 24 | ... events |
| 25 | Trigger Warm Reset |
| 26 | Initiate Power Off |
| 27 | Clear BMC Record Log |
| 28 | |
| 29 | Update PNOR Image |
| 30 | [Documentation] Copy the PNOR image to the BMC /tmp dir and flash it. |
| 31 | Copy PNOR to BMC |
| 32 | ${pnor_path} ${pnor_basename}= Split Path ${PNOR_IMAGE_PATH} |
| 33 | Flash PNOR /tmp/${pnor_basename} |
| 34 | Wait Until Keyword Succeeds 7 min 10 sec Is PNOR Flash Done |
| 35 | |
| 36 | Validate IPL |
| 37 | [Documentation] Power the host on, and validate the IPL |
| 38 | Initiate Power On |
| 39 | Wait Until Keyword Succeeds 10 min 30 sec Is System State Host Booted |
| 40 | |
| 41 | |