summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/unit_tests/trex_general_test.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-02-11 18:20:38 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-02-11 18:20:38 +0200
commit19ef256b19acefef392185bac65a93725c6aef27 (patch)
tree3098ed210a091f4c9a228277471aacbcec55e61d /scripts/automation/regression/unit_tests/trex_general_test.py
parente93926178b4a510bd1bec776d69cc77eb7e16aff (diff)
run_functional_tests not requires unit_tests/functional_tests, can be set to custom test, path from scripts or from regression. added hlt profile test.
Diffstat (limited to 'scripts/automation/regression/unit_tests/trex_general_test.py')
-rwxr-xr-xscripts/automation/regression/unit_tests/trex_general_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/automation/regression/unit_tests/trex_general_test.py b/scripts/automation/regression/unit_tests/trex_general_test.py
index 4558dd41..14af4820 100755
--- a/scripts/automation/regression/unit_tests/trex_general_test.py
+++ b/scripts/automation/regression/unit_tests/trex_general_test.py
@@ -83,6 +83,8 @@ class CTRexGeneral_Test(unittest.TestCase):
"""This class defines the general testcase of the T-Rex traffic generator"""
def __init__ (self, *args, **kwargs):
unittest.TestCase.__init__(self, *args, **kwargs)
+ if CTRexScenario.is_test_list:
+ return
# Point test object to scenario global object
self.configuration = CTRexScenario.configuration
self.benchmark = CTRexScenario.benchmark
@@ -125,7 +127,6 @@ class CTRexGeneral_Test(unittest.TestCase):
print 'Matches needed image: %s' % needed_image
CTRexScenario.router_image = running_image
-
if self.modes:
print termstyle.green('\t!!!\tRunning with modes: %s, not suitable tests will be skipped.\t!!!' % list(self.modes))