blob: 3803c26e05a9a5b03e6b50a08b21c9de41b792f4 [file] [log] [blame]
Charles Paul Hofere0e17802017-09-21 09:19:33 -05001*** Settings ***
2Documentation Test errors and changes in the environment that BMC code
3... update should recover from or not be effected by.
4
5Resource ../../lib/code_update_utils.robot
6Resource ../../lib/openbmc_ffdc.robot
7
8Suite Setup Suite Setup Execution
9
Charles Paul Hofere09408d2017-10-02 14:42:38 -050010Test Setup Test Setup Execution
Charles Paul Hofere0e17802017-09-21 09:19:33 -050011Test Teardown FFDC On Test Case Fail
12
13*** Variables ***
Charles Paul Hofere09408d2017-10-02 14:42:38 -050014
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 Hofere0e17802017-09-21 09:19:33 -050021
22*** Test Cases ***
23
24Reset 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 Hofer6cd4d892017-10-12 15:13:36 -050028 [Template] Reset Network Interface During Code Update
Charles Paul Hofere0e17802017-09-21 09:19:33 -050029
30 # Image File Path Reboot
Charles Paul Hofere09408d2017-10-02 14:42:38 -050031 ${ALTERNATE_IMAGE_FILE_PATH} ${TRUE}
32
33
34Reboot 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 Hofere0e17802017-09-21 09:19:33 -050041
42
43*** Keywords ***
44
45Suite 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 Hofere09408d2017-10-02 14:42:38 -050050 Should Not Be Empty ${ALTERNATE_IMAGE_FILE_PATH}
51 ... msg=ALTERNATE_IMAGE_FILE_PATH should be set.
Charles Paul Hofere0e17802017-09-21 09:19:33 -050052 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 Hofere09408d2017-10-02 14:42:38 -050056
57
58Test 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)