blob: 6d88499b55204ee1393d7a5c966da7c911bd5f26 [file] [log] [blame]
Michael Walsh98d56d12018-09-19 16:05:00 -05001*** Settings ***
George Keishinge3388832018-09-26 07:14:41 -05002Documentation Verify openbmctool.py functionality.
Michael Walsh98d56d12018-09-19 16:05:00 -05003
George Keishinge3388832018-09-26 07:14:41 -05004Library ../lib/gen_print.py
5Library ../lib/gen_robot_print.py
6Library ../lib/openbmctool_utils.py
7Resource ../lib/resource.txt
Michael Walsh98d56d12018-09-19 16:05:00 -05008
9*** Variables ***
10
11${min_num_sensors} ${30}
12
13*** Test Cases ***
14
15Verify 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.