From 613c788c0002c138e0e24d1ac7b889ab92267c30 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Wed, 3 Feb 2016 11:29:20 +0200 Subject: regression: update benchmarks --- scripts/automation/regression/unit_tests/trex_general_test.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/automation/regression/unit_tests') diff --git a/scripts/automation/regression/unit_tests/trex_general_test.py b/scripts/automation/regression/unit_tests/trex_general_test.py index 170baf84..4558dd41 100755 --- a/scripts/automation/regression/unit_tests/trex_general_test.py +++ b/scripts/automation/regression/unit_tests/trex_general_test.py @@ -227,6 +227,10 @@ class CTRexGeneral_Test(unittest.TestCase): if not trex_res.is_done_warmup(): self.fail('T-Rex did not reach warm-up situtaion. Results are not valid.') + # check history size is enough + if len(trex_res._history) < 5: + self.fail('T-Rex results list is too short. Increase the test duration or check unexpected stopping.') + # check T-Rex number of drops trex_tx_pckt = trex_res.get_last_value("trex-global.data.m_total_tx_pkts") trex_drops = trex_res.get_total_drops() -- cgit 1.2.3-korg