summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests/trex_imix_test.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-03-31 18:24:02 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-03-31 18:24:02 +0300
commitfff0f8effc3fa7f5a67246d79d11e61163bc92bb (patch)
tree821da493b452ca04a578c3f11644056a8cfe1436 /scripts/automation/regression/stateful_tests/trex_imix_test.py
parent422c7c52632ebb6fbc5d5ff638b6ef0e1bc56f6b (diff)
regression:
stateless examples: don't fail on result problems, only check python functionality stateful add --warmup flag for 30 seconds 9k imix run before other tests.
Diffstat (limited to 'scripts/automation/regression/stateful_tests/trex_imix_test.py')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_imix_test.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_imix_test.py b/scripts/automation/regression/stateful_tests/trex_imix_test.py
index d98b6afb..c93480c3 100755
--- a/scripts/automation/regression/stateful_tests/trex_imix_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_imix_test.py
@@ -4,6 +4,7 @@ from CPlatform import CStaticRouteConfig
from tests_exceptions import *
#import sys
import time
+from nose.tools import nottest
class CTRexIMIX_Test(CTRexGeneral_Test):
"""This class defines the IMIX testcase of the T-Rex traffic generator"""
@@ -164,7 +165,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
self.check_CPU_benchmark(trex_res)
- def test_jumbo(self):
+ def test_jumbo(self, duration = 100):
if not self.is_loopback:
self.router.configure_basic_interfaces(mtu = 9216)
self.router.config_pbr(mode = "config")
@@ -177,7 +178,7 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
m = mult,
p = True,
nc = True,
- d = 100,
+ d = duration,
f = 'cap2/imix_9k.yaml',
l = 1000)
@@ -191,6 +192,15 @@ class CTRexIMIX_Test(CTRexGeneral_Test):
self.check_general_scenario_results(trex_res)
self.check_CPU_benchmark(trex_res, minimal_cpu = 0, maximal_cpu = 10)
+ # don't include it to regular nose search
+ @nottest
+ def test_warm_up(self):
+ try:
+ self._testMethodName = 'test_jumbo'
+ self.test_jumbo(duration = 30)
+ except Exception as e:
+ print('Ignoring this error: %s' % e)
+
def tearDown(self):
CTRexGeneral_Test.tearDown(self)
# remove nbar config here