Charles Paul Hofer | 9f74d3a | 2017-08-18 09:54:28 -0500 | [diff] [blame^] | 1 | *** Settings *** |
| 2 | Documentation Update the BMC code on a target BMC. |
| 3 | ... Execution Method: |
| 4 | ... python -m robot -v OPENBMC_HOST:<hostname> |
| 5 | ... -v IMAGE_FILE_PATH:<path/*.tar> bmc_code_update.robot |
| 6 | |
| 7 | Library ../../lib/code_update_utils.py |
| 8 | Variables ../../data/variables.py |
| 9 | Resource ../../lib/boot_utils.robot |
| 10 | Resource code_update_utils.robot |
| 11 | Resource ../../lib/code_update_utils.robot |
| 12 | Resource ../lib/openbmc_ffdc.robot |
| 13 | |
| 14 | Test Teardown FFDC On Test Case Fail |
| 15 | |
| 16 | *** Variables *** |
| 17 | |
| 18 | ${QUIET} ${1} |
| 19 | ${IMAGE_FILE_PATH} ${EMPTY} |
| 20 | |
| 21 | *** Test Cases *** |
| 22 | |
| 23 | REST BMC Code Update |
| 24 | [Documentation] Do a BMC code update by uploading image on BMC via REST. |
| 25 | [Tags] REST_BMC_Code_Update |
| 26 | |
| 27 | Upload And Activate Image ${IMAGE_FILE_PATH} |
| 28 | OBMC Reboot (off) |
| 29 | |
| 30 | |
| 31 | Delete BMC Image |
| 32 | [Documentation] Delete a BMC image from the BMC flash chip. |
| 33 | [Tags] Delete_BMC_Image |
| 34 | |
| 35 | ${software_object}= Get Non Running BMC Software Object |
| 36 | Delete Image And Verify ${software_object} ${VERSION_PURPOSE_BMC} |