blob: 029e5adb56284507bf1f77b077d94f9395fc1479 [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
Charles Paul Hofere0e17802017-09-21 09:19:33 -050015${QUIET} ${1}
16${IMAGE_FILE_PATH} ${EMPTY}
17
18*** Test Cases ***
19
20Reset Network During Host Code Update
21 [Documentation] Disable and re-enable the network while doing a PNOR
22 ... code update.
23 [Tags] Reset_Network_During_Host_Code_Update
Charles Paul Hofer6cd4d892017-10-12 15:13:36 -050024 [Template] Reset Network Interface During Code Update
Charles Paul Hofere0e17802017-09-21 09:19:33 -050025
26 # Image File Path Reboot
27 ${IMAGE_FILE_PATH} ${FALSE}
28
29
Charles Paul Hofere09408d2017-10-02 14:42:38 -050030Reboot BMC During Host Code Update
31 [Documentation] Attempt to reboot the BMC while an image is activating,
32 ... checking that the reboot has no effect.
33 [Tags] Reboot_BMC_During_Host_Code_Update
34
35 Attempt To Reboot BMC During Image Activation ${IMAGE_FILE_PATH}
36 OBMC Reboot (off)
37
38
Charles Paul Hofere0e17802017-09-21 09:19:33 -050039*** Keywords ***
40
41Suite Setup Execution
42 [Documentation] Do setup tasks for recoverable errors.
43
44 Should Not Be Empty ${IMAGE_FILE_PATH}
45 ... msg=IMAGE_FILE_PATH should be set.
46 Should Not Be Empty ${OPENBMC_SERIAL_HOST}
47 ... msg=OPENBMC_SERIAL_HOST should be set.
48 Should Not Be Empty ${OPENBMC_SERIAL_PORT}
49 ... msg=OPENBMC_SERIAL_PORT should be set.
Charles Paul Hofere09408d2017-10-02 14:42:38 -050050
51
52Test Setup Execution
53 [Documentation] Do setup tasks for every test case.
54
55 Delete All PNOR Images