blob: 6d4ca554eb526f0977400cdd5e2c2d46097cb16a [file] [log] [blame]
George Keishing5e870cd2016-08-24 10:05:47 -05001*** Settings ***
2Documentation Trigger code update to a target BMC.
3... Execution Method :
4... python -m robot -v OPENBMC_HOST:<hostname>
5... -v FILE_PATH:<path/*all.tar> update_bmc.robot
6...
7... Code update method BMC using REST
8... Update work flow sequence:
9... - User input BMC File existence check
10... - Ping Test and REST authentication
11... - Apply preserve BMC Network setting
12... - SCP image to BMC
13... - Activate the flash image
14... - Warm Reset BMC to activate code
15... - Wait for BMC to come online time out 30 minutes
16... - Version check post update
17
18Resource code_update_utils.robot
19
20*** Variables ***
21
22${FILE_PATH} ${EMPTY}
23
24*** Test cases ***
25
26Initiate Code update BMC
27 [Documentation] BMC code update process initiation
28
29 Check If File Exist ${FILE_PATH}
30 System Readiness Test
31 Validate BMC Version before
32
33 Preserve BMC Network Setting
34 SCP Tar Image File to BMC ${FILE_PATH}
35
36 Activate BMC flash image
37
George Keishing5e870cd2016-08-24 10:05:47 -050038 # TODO: openbmc/openbmc#519
George Keishingb3700812016-08-31 03:03:30 -050039 Run Keyword And Ignore Error Trigger Warm Reset
George Keishing5e870cd2016-08-24 10:05:47 -050040 ${session_active}= Check If warmReset is Initiated
41 Run Keyword If '${session_active}' == '${True}'
42 ... Trigger Warm Reset via Reboot
43
George Keishingc4d3dc02016-09-19 03:45:55 -050044 Check If BMC is Up 30 min 10 sec
George Keishing5e870cd2016-08-24 10:05:47 -050045 Sleep 1 min
46 Validate BMC Version