blob: b99cb42bd5f6845cff56ee6e76f76e8bf20b4485 [file] [log] [blame]
George Keishinga47c5d32017-01-09 09:03:17 -06001*** Settings ***
2Documentation Set metadata for test suite.
3
4Library SSHLibrary
5Resource ../lib/connection_client.robot
6Resource ../lib/rest_client.robot
George Keishing847a7bf2017-02-09 11:39:47 -06007Resource ../lib/utils.robot
Sweta Potthuricd966342017-09-06 03:41:32 -05008Resource ../lib/code_update_utils.robot
George Keishinga47c5d32017-01-09 09:03:17 -06009
10Suite Setup System Driver Data
11
12*** Variables ***
13
14${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID=
15
16*** Keyword ***
17
18System Driver Data
19 [Documentation] System driver information.
George Keishing847a7bf2017-02-09 11:39:47 -060020 Open Connection And Log In
21 Run Keyword And Ignore Error Log BMC Driver Details
22 Run Keyword And Ignore Error Log PNOR Driver Details
23 Run Keyword And Ignore Error Log BMC Model
George Keishing7a520222017-02-27 09:44:30 -060024 Run Keyword And Ignore Error Enable Core Dump On BMC
George Keishinga126e212017-03-24 08:07:17 -050025 Run Keyword If '${DEBUG_TARBALL_PATH}' != '${EMPTY}'
26 ... Run Keyword And Ignore Error
27 ... Install Debug Tarball On BMC ${DEBUG_TARBALL_PATH}
George Keishinga47c5d32017-01-09 09:03:17 -060028
George Keishing847a7bf2017-02-09 11:39:47 -060029Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060030 [Documentation] Get BMC driver details and log.
31
George Keishinga47c5d32017-01-09 09:03:17 -060032 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
33 ... return_stderr=True
34 Should Be Empty ${stderr}
35 Log ${output}
36 [Return] ${output}
37
George Keishing847a7bf2017-02-09 11:39:47 -060038Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060039 [Documentation] Get PNOR driver details and log.
George Keishing90ab1772017-02-24 05:40:55 -060040 # Until the new REST interface is available using pflash to
41 # capture the PNOR details.
Sweta Potthuricd966342017-09-06 03:41:32 -050042 ${software}= Get Host Software Objects Details
43 Log ${software}
George Keishing847a7bf2017-02-09 11:39:47 -060044
45Log BMC Model
46 [Documentation] Fetch BMC Model name from system and log.
47 ${bmc_model}= Get BMC System Model
48 Log BMC Model=${bmc_model}