Steven Sombar | 96ed142 | 2017-12-01 14:48:27 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation Test the default value of power management enablement. |
| 3 | |
| 4 | Resource ../lib/openbmc_ffdc.robot |
| 5 | |
| 6 | Test Teardown Test Teardown Execution |
| 7 | |
| 8 | |
| 9 | *** Test Cases *** |
| 10 | |
| 11 | Verify Powercap Disabled By Default |
| 12 | [Documentation] Powercap is disabled by default. |
| 13 | [Tags] Verify_Powercap_Disabled_By_Default |
| 14 | |
| 15 | # Example: |
| 16 | # /xyz/openbmc_project/control/host0/power_cap: |
| 17 | # { |
| 18 | # "PowerCap": 0, |
| 19 | # "PowerCapEnable": 0 |
| 20 | # }, |
| 21 | |
| 22 | ${powercap}= Read Attribute ${CONTROL_HOST_URI}power_cap PowerCapEnable |
| 23 | Should Be True ${powercap} == ${0} |
| 24 | ... msg=Default PowerCapEnable should be off. |
| 25 | |
| 26 | |
| 27 | *** Keywords *** |
| 28 | |
| 29 | |
| 30 | Test Teardown Execution |
| 31 | [Documentation] Do the post test teardown. |
| 32 | |
| 33 | FFDC On Test Case Fail |