diff options
author | imarom <imarom@cisco.com> | 2016-04-12 18:01:43 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-04-12 18:02:08 +0300 |
commit | 87bac1abebe2f5a853e32301a68b9f6adf97de99 (patch) | |
tree | da9d169f819cdddb0e6c4ed9aa09d3051ef7227e /scripts/automation/trex_control_plane/stl/examples/stl_imix.py | |
parent | 2c00ae277f8c50ebeec17f0e059b17f2b4ba2a07 (diff) |
added checks for warnings on examples
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples/stl_imix.py')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/examples/stl_imix.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_imix.py b/scripts/automation/trex_control_plane/stl/examples/stl_imix.py index bc7990aa..46d86b2b 100644 --- a/scripts/automation/trex_control_plane/stl/examples/stl_imix.py +++ b/scripts/automation/trex_control_plane/stl/examples/stl_imix.py @@ -83,7 +83,12 @@ def imix_test (server, mult): print("\npackets lost from {0} --> {1}: {2:,} pkts".format(dir_0, dir_0, lost_0)) print("packets lost from {0} --> {1}: {2:,} pkts".format(dir_1, dir_1, lost_1)) - if (lost_0 <= 0) and (lost_1 <= 0): # less or equal because we might have incoming arps etc. + if c.get_warnings(): + print("\n\n*** test had warnings ****\n\n") + for w in c.get_warnings(): + print(w) + + if (lost_0 <= 0) and (lost_1 <= 0) and not c.get_warnings(): # less or equal because we might have incoming arps etc. passed = True else: passed = False |