Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test errors and changes in the environment that BMC code |
| 3 | ... update should recover from or not be effected by. |
| 4 | |
| 5 | Resource ../../lib/code_update_utils.robot |
| 6 | Resource ../../lib/openbmc_ffdc.robot |
| 7 | |
| 8 | Suite Setup Suite Setup Execution |
| 9 | |
Charles Paul Hofer | e09408d | 2017-10-02 14:42:38 -0500 | [diff] [blame] | 10 | Test Setup Test Setup Execution |
Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 11 | Test Teardown FFDC On Test Case Fail |
| 12 | |
| 13 | *** Variables *** |
Charles Paul Hofer | e09408d | 2017-10-02 14:42:38 -0500 | [diff] [blame] | 14 | |
| 15 | ${QUIET} ${1} |
| 16 | ${IMAGE_FILE_PATH} ${EMPTY} |
| 17 | |
| 18 | # In order to test the code update features of the image at ${IMAGE_FILE_PATH}, |
| 19 | # we need another BMC image to update to. |
| 20 | ${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY} |
Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 21 | |
| 22 | *** Test Cases *** |
| 23 | |
| 24 | Reset Network During BMC Code Update |
| 25 | [Documentation] Disable and re-enable the network while doing a BMC |
| 26 | ... code update. |
| 27 | [Tags] Reset_Network_During_BMC_Code_Update |
Charles Paul Hofer | 6cd4d89 | 2017-10-12 15:13:36 -0500 | [diff] [blame] | 28 | [Template] Reset Network Interface During Code Update |
Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 29 | |
| 30 | # Image File Path Reboot |
Charles Paul Hofer | e09408d | 2017-10-02 14:42:38 -0500 | [diff] [blame] | 31 | ${ALTERNATE_IMAGE_FILE_PATH} ${TRUE} |
| 32 | |
| 33 | |
| 34 | Reboot BMC During BMC Image Activation |
| 35 | [Documentation] Attempt to reboot the BMC while an image is activating, |
| 36 | ... checking that the reboot has no effect. |
| 37 | [Tags] Reboot_BMC_During_BMC_Image_Activation |
| 38 | |
| 39 | Attempt To Reboot BMC During Image Activation ${ALTERNATE_IMAGE_FILE_PATH} |
| 40 | OBMC Reboot (off) |
Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 41 | |
| 42 | |
| 43 | *** Keywords *** |
| 44 | |
| 45 | Suite Setup Execution |
| 46 | [Documentation] Do setup tasks for recoverable errors. |
| 47 | |
| 48 | Should Not Be Empty ${IMAGE_FILE_PATH} |
| 49 | ... msg=IMAGE_FILE_PATH should be set. |
Charles Paul Hofer | e09408d | 2017-10-02 14:42:38 -0500 | [diff] [blame] | 50 | Should Not Be Empty ${ALTERNATE_IMAGE_FILE_PATH} |
| 51 | ... msg=ALTERNATE_IMAGE_FILE_PATH should be set. |
Charles Paul Hofer | e0e1780 | 2017-09-21 09:19:33 -0500 | [diff] [blame] | 52 | Should Not Be Empty ${OPENBMC_SERIAL_HOST} |
| 53 | ... msg=OPENBMC_SERIAL_HOST should be set. |
| 54 | Should Not Be Empty ${OPENBMC_SERIAL_PORT} |
| 55 | ... msg=OPENBMC_SERIAL_PORT should be set. |
Charles Paul Hofer | e09408d | 2017-10-02 14:42:38 -0500 | [diff] [blame] | 56 | |
| 57 | |
| 58 | Test Setup Execution |
| 59 | [Documentation] Do setup tasks for every test case. |
| 60 | |
| 61 | Upload And Activate Image ${IMAGE_FILE_PATH} skip_if_active=true |
| 62 | OBMC Reboot (off) |