George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Set metadata for test suite. |
| 3 | |
| 4 | Library SSHLibrary |
| 5 | Resource ../lib/connection_client.robot |
| 6 | Resource ../lib/rest_client.robot |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 7 | Resource ../lib/utils.robot |
Sweta Potthuri | cd96634 | 2017-09-06 03:41:32 -0500 | [diff] [blame] | 8 | Resource ../lib/code_update_utils.robot |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 9 | |
| 10 | Suite Setup System Driver Data |
| 11 | |
| 12 | *** Variables *** |
| 13 | |
| 14 | ${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID= |
| 15 | |
| 16 | *** Keyword *** |
| 17 | |
| 18 | System Driver Data |
| 19 | [Documentation] System driver information. |
Vijay | 1a52c99 | 2017-09-19 08:37:26 -0500 | [diff] [blame] | 20 | Run Keyword And Ignore Error Clear System Entry From Knownhosts |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 21 | Open Connection And Log In |
| 22 | Run Keyword And Ignore Error Log BMC Driver Details |
| 23 | Run Keyword And Ignore Error Log PNOR Driver Details |
| 24 | Run Keyword And Ignore Error Log BMC Model |
George Keishing | 7a52022 | 2017-02-27 09:44:30 -0600 | [diff] [blame] | 25 | Run Keyword And Ignore Error Enable Core Dump On BMC |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 26 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 27 | Log BMC Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 28 | [Documentation] Get BMC driver details and log. |
| 29 | |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 30 | ${output} ${stderr}= Execute Command ${DRIVER_CMD} |
| 31 | ... return_stderr=True |
| 32 | Should Be Empty ${stderr} |
| 33 | Log ${output} |
| 34 | [Return] ${output} |
| 35 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 36 | Log PNOR Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 37 | [Documentation] Get PNOR driver details and log. |
George Keishing | 90ab177 | 2017-02-24 05:40:55 -0600 | [diff] [blame] | 38 | # Until the new REST interface is available using pflash to |
| 39 | # capture the PNOR details. |
Sweta Potthuri | cd96634 | 2017-09-06 03:41:32 -0500 | [diff] [blame] | 40 | ${software}= Get Host Software Objects Details |
| 41 | Log ${software} |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 42 | |
| 43 | Log BMC Model |
| 44 | [Documentation] Fetch BMC Model name from system and log. |
| 45 | ${bmc_model}= Get BMC System Model |
| 46 | Log BMC Model=${bmc_model} |