From 6e0de1a39a4ff389a5669c91e07bf938b3b99d28 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Fri, 8 Jan 2016 23:07:08 +0200 Subject: ws_main.py: don't expect for env. vars if building local package regression: increase maximal allowed latency to 100ms on VM (50ms is not enough) --- scripts/automation/regression/unit_tests/trex_general_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 fb84a3e1..cc2c4744 100755 --- a/scripts/automation/regression/unit_tests/trex_general_test.py +++ b/scripts/automation/regression/unit_tests/trex_general_test.py @@ -238,8 +238,8 @@ class CTRexGeneral_Test(unittest.TestCase): #trex_exp_gbps = trex_exp_rate/(10**9) if check_latency: - # check that max latency does not exceed 1 msec in regular setup or 20ms in VM - allowed_latency = 50000 if self.is_VM else 1000 + # check that max latency does not exceed 1 msec in regular setup or 100ms in VM + allowed_latency = 100000 if self.is_VM else 1000 if max(trex_res.get_max_latency().values()) > allowed_latency: self.fail('LatencyError: Maximal latency exceeds %s (usec)' % allowed_latency) -- cgit 1.2.3-korg