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