blob: 1fd647974077d0f07fa43468c9730fc0b1e43bd5 [file] [log] [blame]
Charles Paul Hofer9f74d3a2017-08-18 09:54:28 -05001*** Settings ***
2Documentation 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
7Library ../../lib/code_update_utils.py
8Variables ../../data/variables.py
9Resource ../../lib/boot_utils.robot
10Resource code_update_utils.robot
11Resource ../../lib/code_update_utils.robot
12Resource ../lib/openbmc_ffdc.robot
13
14Test Teardown FFDC On Test Case Fail
15
16*** Variables ***
17
18${QUIET} ${1}
19${IMAGE_FILE_PATH} ${EMPTY}
20
21*** Test Cases ***
22
23REST 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
31Delete 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}