George Keishing | 3b92dfc | 2018-09-22 13:07:06 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Verify that the BMC boots between code updates of different |
| 3 | ... BMC version. Verify with N, the current version, downgrade |
| 4 | ... and verify with N-1, update and verify N again, and finally |
| 5 | ... update and verify with N+1. |
| 6 | |
| 7 | Library ../../lib/code_update_utils.py |
| 8 | Library ../../lib/gen_robot_valid.py |
| 9 | Variables ../../data/variables.py |
| 10 | Resource ../../lib/boot_utils.robot |
| 11 | Resource ../../lib/code_update_utils.robot |
| 12 | Resource ../../lib/openbmc_ffdc.robot |
| 13 | |
| 14 | Suite Setup Suite Setup Execution |
| 15 | |
| 16 | Test Teardown FFDC On Test Case Fail |
| 17 | |
| 18 | *** Variables *** |
| 19 | |
| 20 | ${QUIET} ${1} |
| 21 | ${IMAGE_FILE_PATH} ${EMPTY} |
| 22 | ${N_MINUS_ONE_IMAGE_FILE_PATH} ${EMPTY} |
| 23 | ${N_PLUS_ONE_IMAGE_FILE_PATH} ${EMPTY} |
| 24 | ${SKIP_UPDATE_IF_ACTIVE} false |
| 25 | |
| 26 | *** Test Cases *** |
| 27 | |
| 28 | BMC Multi Code Update |
| 29 | [Documentation] Do four code updates in a row. Update to N, N-1, N, and |
| 30 | ... then N+1. |
| 31 | [Tags] BMC_Multi_Code_Update |
| 32 | [Template] Code Update And Reboot BMC |
| 33 | |
| 34 | # Image File Path |
| 35 | ${IMAGE_FILE_PATH} |
| 36 | ${N_MINUS_ONE_IMAGE_FILE_PATH} |
| 37 | ${IMAGE_FILE_PATH} |
| 38 | ${N_PLUS_ONE_IMAGE_FILE_PATH} |
| 39 | |
| 40 | |
| 41 | *** Keywords *** |
| 42 | |
| 43 | Suite Setup Execution |
| 44 | [Documentation] Do test suite setup tasks. |
| 45 | |
Michael Walsh | e7edb22 | 2019-08-19 17:39:38 -0500 | [diff] [blame] | 46 | Valid Value IMAGE_FILE_PATH |
| 47 | Valid Value N_MINUS_ONE_IMAGE_FILE_PATH |
| 48 | Valid Value N_PLUS_ONE_IMAGE_FILE_PATH |
George Keishing | 3b92dfc | 2018-09-22 13:07:06 -0500 | [diff] [blame] | 49 | |
| 50 | |
| 51 | Code Update And Reboot BMC |
| 52 | [Documentation] Update the given image, and then verify update. |
| 53 | [Arguments] ${image_file_path} |
| 54 | |
| 55 | # Description of argument(s): |
| 56 | # image_file_path Path to the bmc image file. |
| 57 | |
| 58 | Upload And Activate Image ${image_file_path} |
| 59 | ... skip_if_active=${SKIP_UPDATE_IF_ACTIVE} |
| 60 | OBMC Reboot (off) stack_mode=normal |
| 61 | Verify Running BMC Image ${image_file_path} |