summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests/trex_imix_test.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-14 23:46:39 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-14 23:46:39 +0300
commitb577ba683afb5d31858b95bd0a9a9c479752c498 (patch)
treebce0389d22eda9c117bb96e0aa22cc2c8413ee6b /scripts/automation/regression/stateful_tests/trex_imix_test.py
parent94ce0dcd7f93fe82e667f38d805f56d6d828f824 (diff)
regression: add --python2 and --python3 to run_regression, if nothing provided, use python2.
hltapi: fix bug of not reducing 4 bytes from produced packets because of fcs. doc: add trex_client package stl/stf example of running examples :)
Diffstat (limited to 'scripts/automation/regression/stateful_tests/trex_imix_test.py')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_imix_test.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_imix_test.py b/scripts/automation/regression/stateful_tests/trex_imix_test.py
index e7c27cc7..95a5471d 100755
--- a/scripts/automation/regression/stateful_tests/trex_imix_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_imix_test.py
@@ -164,7 +164,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
self.check_CPU_benchmark(trex_res)
- def test_jumbo(self, duration = 100):
+ def test_jumbo(self, duration = 100, **kwargs):
if not self.is_loopback:
self.router.configure_basic_interfaces(mtu = 9216)
self.router.config_pbr(mode = "config")
@@ -179,7 +179,8 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
nc = True,
d = duration,
f = 'cap2/imix_9k.yaml',
- l = 1000)
+ l = 1000,
+ **kwargs)
trex_res = self.trex.sample_to_run_finish()
@@ -196,9 +197,12 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
def test_warm_up(self):
try:
self._testMethodName = 'test_jumbo'
- self.test_jumbo(duration = 30)
+ self.test_jumbo(duration = 5, trex_development = True)
except Exception as e:
print('Ignoring this error: %s' % e)
+ if self.fail_reasons:
+ print('Ignoring this error(s):\n%s' % '\n'.join(self.fail_reasons))
+ self.fail_reasons = []
def tearDown(self):
CTRexGeneral_Test.tearDown(self)