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