From: Hanoh Haim Date: Wed, 16 Nov 2016 09:53:35 +0000 (+0200) Subject: fail in case of queue full - the CPU is not valid X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=b75bfec0eeb24f3a3552e6c9ca4b1f302f71ca35;p=trex.git fail in case of queue full - the CPU is not valid Signed-off-by: Hanoh Haim --- 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)