blob: 0c8014a7e4caffd1281dc94ae414e504ddb01a44 [file] [log] [blame]
George Keishingb3a3bde2017-01-24 10:38:59 -06001*** Settings ***
2Documentation Network diagnostic tool report and logs to console
3... for information. For more information 'man mtr'.
4
5Library OperatingSystem
6Library ../lib/utilities.py
7Resource ../lib/utils.robot
8Test Setup Check If Tool Exist
9
10*** Test Cases ***
11
12Check Network Latency
13 [Documentation] Check network connection between host MTR and BMC host.
14 [Tags] Check_Network_Latency
15
16 Ping Host ${OPENBMC_HOST}
17 Repeat Keyword 3 times Log Network Loss
18
19*** Keywords ***
20
21Log Network Loss
22 [Documentation] Log Network packets loss percentage from MTR report.
23 ${report}= Get MTR Row ${OPENBMC_HOST}
24 Log To Console \n Network packets loss: ${report['loss']} percent
25 Sleep 3s
26
27Check If Tool Exist
28 [Documentation] Check if mtr tool exists.
29
30 ${bin_path}= Run which mtr
31 Should Contain ${bin_path} mtr msg=mtr tool is not installed.