diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-03 11:29:20 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-02-03 11:29:20 +0200 |
commit | 613c788c0002c138e0e24d1ac7b889ab92267c30 (patch) | |
tree | 83743aea9df2a2a98d2fb93a391938d7d48b6838 /scripts/automation/regression/unit_tests | |
parent | 04fecbc6acbf07ddac6a48a542eb86a916007ba7 (diff) |
regression: update benchmarks
Diffstat (limited to 'scripts/automation/regression/unit_tests')
-rwxr-xr-x | scripts/automation/regression/unit_tests/trex_general_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
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() |