diff options
author | 2016-01-08 23:07:08 +0200 | |
---|---|---|
committer | 2016-01-08 23:07:08 +0200 | |
commit | 6e0de1a39a4ff389a5669c91e07bf938b3b99d28 (patch) | |
tree | a4aff19dffb055152c2f741f6582140aeeb4e81e | |
parent | 148fd251911869db33df03f7fd3287c1f76f2fa4 (diff) |
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)
-rwxr-xr-x | linux_dpdk/ws_main.py | 3 | ||||
-rwxr-xr-x | scripts/automation/regression/unit_tests/trex_general_test.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/linux_dpdk/ws_main.py b/linux_dpdk/ws_main.py index 19ff9298..e95dd260 100755 --- a/linux_dpdk/ws_main.py +++ b/linux_dpdk/ws_main.py @@ -918,11 +918,12 @@ def pkg(self): def release(bld, custom_dir = None): """ release to local folder """ - exec_p = Env().get_release_path() if custom_dir: exec_p = custom_dir elif not check_release_permission(): return + else + exec_p = Env().get_release_path() print "copy images and libs" os.system(' mkdir -p '+exec_p); 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) |