fail in case of queue full - the CPU is not valid
authorHanoh Haim <[email protected]>
Wed, 16 Nov 2016 09:53:35 +0000 (11:53 +0200)
committerHanoh Haim <[email protected]>
Wed, 16 Nov 2016 09:55:23 +0000 (11:55 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
scripts/automation/regression/stateless_tests/stl_performance_test.py

index a556daf..641f0a3 100644 (file)
@@ -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)