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 |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 8 | |
| 9 | Suite Setup System Driver Data |
| 10 | |
| 11 | *** Variables *** |
| 12 | |
| 13 | ${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID= |
George Keishing | 90ab177 | 2017-02-24 05:40:55 -0600 | [diff] [blame] | 14 | ${PNOR_CMD} /usr/sbin/pflash -r /tmp/out.txt -P VERSION; cat /tmp/out.txt |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 15 | |
| 16 | *** Keyword *** |
| 17 | |
| 18 | System Driver Data |
| 19 | [Documentation] System driver information. |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 20 | 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 Keishing | 7a52022 | 2017-02-27 09:44:30 -0600 | [diff] [blame] | 24 | Run Keyword And Ignore Error Enable Core Dump On BMC |
George Keishing | a126e21 | 2017-03-24 08:07:17 -0500 | [diff] [blame^] | 25 | Run Keyword If '${DEBUG_TARBALL_PATH}' != '${EMPTY}' |
| 26 | ... Run Keyword And Ignore Error |
| 27 | ... Install Debug Tarball On BMC ${DEBUG_TARBALL_PATH} |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 28 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 29 | Log BMC Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 30 | [Documentation] Get BMC driver details and log. |
| 31 | |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 32 | ${output} ${stderr}= Execute Command ${DRIVER_CMD} |
| 33 | ... return_stderr=True |
| 34 | Should Be Empty ${stderr} |
| 35 | Log ${output} |
| 36 | [Return] ${output} |
| 37 | |
| 38 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 39 | Log PNOR Driver Details |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 40 | [Documentation] Get PNOR driver details and log. |
George Keishing | 90ab177 | 2017-02-24 05:40:55 -0600 | [diff] [blame] | 41 | # Until the new REST interface is available using pflash to |
| 42 | # capture the PNOR details. |
| 43 | ${pnor_details}= Execute Command On BMC ${PNOR_CMD} |
| 44 | Log PNOR_INFO=${pnor_details} |
George Keishing | a47c5d3 | 2017-01-09 09:03:17 -0600 | [diff] [blame] | 45 | |
George Keishing | 847a7bf | 2017-02-09 11:39:47 -0600 | [diff] [blame] | 46 | |
| 47 | Log BMC Model |
| 48 | [Documentation] Fetch BMC Model name from system and log. |
| 49 | ${bmc_model}= Get BMC System Model |
| 50 | Log BMC Model=${bmc_model} |
| 51 | |