blob: 6c8728ed4e5de58b648b6d4c84eec65a7ae26aba [file] [log] [blame]
George Keishing3b92dfc2018-09-22 13:07:06 -05001*** Settings ***
2Documentation 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
7Library ../../lib/code_update_utils.py
8Library ../../lib/gen_robot_valid.py
9Variables ../../data/variables.py
10Resource ../../lib/boot_utils.robot
11Resource ../../lib/code_update_utils.robot
12Resource ../../lib/openbmc_ffdc.robot
13
14Suite Setup Suite Setup Execution
15
16Test 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
28BMC 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
43Suite Setup Execution
44 [Documentation] Do test suite setup tasks.
45
Michael Walshe7edb222019-08-19 17:39:38 -050046 Valid Value IMAGE_FILE_PATH
47 Valid Value N_MINUS_ONE_IMAGE_FILE_PATH
48 Valid Value N_PLUS_ONE_IMAGE_FILE_PATH
George Keishing3b92dfc2018-09-22 13:07:06 -050049
50
51Code 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}