Michael Walsh | 98d56d1 | 2018-09-19 16:05:00 -0500 | [diff] [blame] | 1 | *** Settings *** |
George Keishing | e338883 | 2018-09-26 07:14:41 -0500 | [diff] [blame] | 2 | Documentation Verify openbmctool.py functionality. |
Michael Walsh | 98d56d1 | 2018-09-19 16:05:00 -0500 | [diff] [blame] | 3 | |
George Keishing | e338883 | 2018-09-26 07:14:41 -0500 | [diff] [blame] | 4 | Library ../lib/gen_print.py |
| 5 | Library ../lib/gen_robot_print.py |
| 6 | Library ../lib/openbmctool_utils.py |
| 7 | Resource ../lib/resource.txt |
Michael Walsh | 98d56d1 | 2018-09-19 16:05:00 -0500 | [diff] [blame] | 8 | |
| 9 | *** Variables *** |
| 10 | |
| 11 | ${min_num_sensors} ${30} |
| 12 | |
| 13 | *** Test Cases *** |
| 14 | |
| 15 | Verify FRU Status |
| 16 | [Documentation] Verify that the fru status command works. |
| 17 | [Tags] Verify_FRU_Status |
| 18 | |
| 19 | Rprintn |
| 20 | ${rc} ${output}= Openbmctool Execute Command fru status | egrep -v '^$|^Component' | wc -l |
| 21 | ${num_sensors}= Convert to Integer ${output} |
| 22 | Rprint Vars num_sensors |
| 23 | Should Be True ${num_sensors} >= ${min_num_sensors} |
| 24 | ... msg=There should be at least ${min_num_sensors} sensors. |