summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-05-19 12:47:27 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-05-19 12:47:27 +0300
commit95a9c388c6deb214f991411adf9ff08f64708ffd (patch)
treed4c2be22f7a89c870d6a545907b4f91d41902547 /scripts/automation/regression
parent2c4520a64a1d808abfa31a2ea83f708b3b5811f9 (diff)
flow latency python examples
Diffstat (limited to 'scripts/automation/regression')
-rw-r--r--scripts/automation/regression/stateless_tests/stl_rx_test.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py
index 5494fdf0..70c003aa 100644
--- a/scripts/automation/regression/stateless_tests/stl_rx_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py
@@ -50,9 +50,13 @@ class STLRX_Test(CStlGeneral_Test):
if latency_stats is not None:
drops = latency_stats['err_cntrs']['dropped']
ooo = latency_stats['err_cntrs']['out_of_order']
- if drops != 0 or ooo != 0:
+ dup = latency_stats['err_cntrs']['dup']
+ sth = latency_stats['err_cntrs']['seq_too_high']
+ stl = latency_stats['err_cntrs']['seq_too_low']
+ lat = latency_stats['latency']
+ if drops != 0 or ooo != 0 or dup != 0 or stl !=0 or sth != 0:
pprint.pprint(latency_stats)
- tmp='Dropped or out of order packets - dropped: {0}, ooo: {1}'.format(drops, ooo)
+ tmp='Dropped or out of order packets - dropped:{0}, ooo:{1} dup:{2} seq too high:{3} seq too low:{4}'.format(drops, ooo, dup, sth, stl)
assert False, tmp
if tx_pkts != total_pkts: