diff options
author | 2016-11-16 11:53:35 +0200 | |
---|---|---|
committer | 2016-11-16 11:55:23 +0200 | |
commit | b75bfec0eeb24f3a3552e6c9ca4b1f302f71ca35 (patch) | |
tree | 5aa19f322305ed1c279944be63382f7a44656818 /scripts/automation/regression | |
parent | 122f336ffde6d3fc74acc6861322328d778d3232 (diff) |
fail in case of queue full - the CPU is not valid
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts/automation/regression')
-rw-r--r-- | scripts/automation/regression/stateless_tests/stl_performance_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_performance_test.py b/scripts/automation/regression/stateless_tests/stl_performance_test.py index a556daf3..641f0a33 100644 --- a/scripts/automation/regression/stateless_tests/stl_performance_test.py +++ b/scripts/automation/regression/stateless_tests/stl_performance_test.py @@ -296,6 +296,10 @@ class STLPerformance_Test(CStlGeneral_Test): # sample bps/pps for _ in range(0, 20): stats = self.c.get_stats(ports = 0) + if stats['global'][ 'queue_full']>10000: + assert 0, "Queue is full need to tune the multiplier" + + # CPU results are not valid cannot use them samples['bps'].append(stats[0]['tx_bps']) samples['pps'].append(stats[0]['tx_pps']) time.sleep(1) |