blob: 85f2416876c5114c5db30086e824ce926d6f3558 [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
George Keishingbcb32882017-10-28 11:09:47 -05005Resource ../../lib/code_update_utils_serial.robot
Charles Paul Hofere0e17802017-09-21 09:19:33 -05006Resource ../../lib/openbmc_ffdc.robot
7
George Keishingf4038512017-10-30 01:12:01 -05008Force Tags BMC_Update_Recoverable_Error
9
Charles Paul Hofere0e17802017-09-21 09:19:33 -050010Suite Setup Suite Setup Execution
11
Charles Paul Hofere09408d2017-10-02 14:42:38 -050012Test Setup Test Setup Execution
Charles Paul Hofere0e17802017-09-21 09:19:33 -050013Test Teardown FFDC On Test Case Fail
14
15*** Variables ***
Charles Paul Hofere09408d2017-10-02 14:42:38 -050016
17${QUIET} ${1}
18${IMAGE_FILE_PATH} ${EMPTY}
19
20# In order to test the code update features of the image at ${IMAGE_FILE_PATH},
21# we need another BMC image to update to.
22${ALTERNATE_IMAGE_FILE_PATH} ${EMPTY}
Charles Paul Hofere0e17802017-09-21 09:19:33 -050023
24*** Test Cases ***
25
26Reset Network During BMC Code Update
27 [Documentation] Disable and re-enable the network while doing a BMC
28 ... code update.
29 [Tags] Reset_Network_During_BMC_Code_Update
Charles Paul Hofer6cd4d892017-10-12 15:13:36 -050030 [Template] Reset Network Interface During Code Update
Charles Paul Hofere0e17802017-09-21 09:19:33 -050031
32 # Image File Path Reboot
Charles Paul Hofere09408d2017-10-02 14:42:38 -050033 ${ALTERNATE_IMAGE_FILE_PATH} ${TRUE}
34
35
36Reboot BMC During BMC Image Activation
37 [Documentation] Attempt to reboot the BMC while an image is activating,
38 ... checking that the reboot has no effect.
39 [Tags] Reboot_BMC_During_BMC_Image_Activation
40
41 Attempt To Reboot BMC During Image Activation ${ALTERNATE_IMAGE_FILE_PATH}
42 OBMC Reboot (off)
Charles Paul Hofere0e17802017-09-21 09:19:33 -050043
44
45*** Keywords ***
46
47Suite Setup Execution
48 [Documentation] Do setup tasks for recoverable errors.
49
50 Should Not Be Empty ${IMAGE_FILE_PATH}
51 ... msg=IMAGE_FILE_PATH should be set.
Charles Paul Hofere09408d2017-10-02 14:42:38 -050052 Should Not Be Empty ${ALTERNATE_IMAGE_FILE_PATH}
53 ... msg=ALTERNATE_IMAGE_FILE_PATH should be set.
Charles Paul Hofere0e17802017-09-21 09:19:33 -050054 Should Not Be Empty ${OPENBMC_SERIAL_HOST}
55 ... msg=OPENBMC_SERIAL_HOST should be set.
56 Should Not Be Empty ${OPENBMC_SERIAL_PORT}
57 ... msg=OPENBMC_SERIAL_PORT should be set.
Charles Paul Hofere09408d2017-10-02 14:42:38 -050058
59
60Test Setup Execution
61 [Documentation] Do setup tasks for every test case.
62
63 Upload And Activate Image ${IMAGE_FILE_PATH} skip_if_active=true
64 OBMC Reboot (off)
Charles Paul Hoferb420c572017-10-31 09:24:12 -050065 Delete All Non Running BMC Images