blob: cf6a589cf22c23fdff87df17b5ac87e40d16797e [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
George Keishinga47c5d32017-01-09 09:03:17 -06008
9Suite Setup System Driver Data
10
11*** Variables ***
12
13${DRIVER_CMD} cat /etc/os-release | grep ^VERSION_ID=
George Keishing90ab1772017-02-24 05:40:55 -060014${PNOR_CMD} /usr/sbin/pflash -r /tmp/out.txt -P VERSION; cat /tmp/out.txt
George Keishinga47c5d32017-01-09 09:03:17 -060015
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 Keishinga47c5d32017-01-09 09:03:17 -060025
George Keishing847a7bf2017-02-09 11:39:47 -060026Log BMC Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060027 [Documentation] Get BMC driver details and log.
28
George Keishinga47c5d32017-01-09 09:03:17 -060029 ${output} ${stderr}= Execute Command ${DRIVER_CMD}
30 ... return_stderr=True
31 Should Be Empty ${stderr}
32 Log ${output}
33 [Return] ${output}
34
35
George Keishing847a7bf2017-02-09 11:39:47 -060036Log PNOR Driver Details
George Keishinga47c5d32017-01-09 09:03:17 -060037 [Documentation] Get PNOR driver details and log.
George Keishing90ab1772017-02-24 05:40:55 -060038 # Until the new REST interface is available using pflash to
39 # capture the PNOR details.
40 ${pnor_details}= Execute Command On BMC ${PNOR_CMD}
41 Log PNOR_INFO=${pnor_details}
George Keishinga47c5d32017-01-09 09:03:17 -060042
George Keishing847a7bf2017-02-09 11:39:47 -060043
44Log BMC Model
45 [Documentation] Fetch BMC Model name from system and log.
46 ${bmc_model}= Get BMC System Model
47 Log BMC Model=${bmc_model}
48