blob: 07ca8584d54c208646a204b770914441babfd36c [file] [log] [blame]
Michael Walsh98d56d12018-09-19 16:05:00 -05001*** Settings ***
2Documentation Verify openbmctool.py functionality.
3
4Library ../lib/gen_print.py
5Library ../lib/gen_robot_print.py
6Library ../lib/openbmctool_utils.py
7
8*** Variables ***
9
10${min_num_sensors} ${30}
11
12*** Test Cases ***
13
14Verify 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.