summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-05-17 03:15:35 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-05-17 03:15:35 +0300
commitfad99b60c53a5dcf042a6b8b0d041d6d7116b871 (patch)
treecfccabde2ee2c734d789b78bc427c8b07365e992 /scripts/automation/regression/stateful_tests
parentd4391c7b4ecaa68c6d3290374380759288a3191e (diff)
regression: add no-daemon flag that specifies stl server is running, no need daemons etc.
Diffstat (limited to 'scripts/automation/regression/stateful_tests')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_general_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_general_test.py b/scripts/automation/regression/stateful_tests/trex_general_test.py
index 33b954fc..4e3e07e8 100755
--- a/scripts/automation/regression/stateful_tests/trex_general_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_general_test.py
@@ -60,6 +60,7 @@ class CTRexGeneral_Test(unittest.TestCase):
self.trex_crashed = CTRexScenario.trex_crashed
self.modes = CTRexScenario.modes
self.GAManager = CTRexScenario.GAManager
+ self.no_daemon = CTRexScenario.no_daemon
self.skipping = False
self.fail_reasons = []
if not hasattr(self, 'unsupported_modes'):
@@ -69,7 +70,7 @@ class CTRexGeneral_Test(unittest.TestCase):
self.is_VM = True if 'VM' in self.modes else False
if not CTRexScenario.is_init:
- if self.trex: # stateful
+ if self.trex and not self.no_daemon: # stateful
CTRexScenario.trex_version = self.trex.get_trex_version()
if not self.is_loopback:
# initilize the scenario based on received configuration, once per entire testing session
@@ -330,7 +331,7 @@ class CTRexGeneral_Test(unittest.TestCase):
self.trex.force_kill(confirm = False)
if not self.skipping:
# print server logs of test run
- if self.trex and CTRexScenario.server_logs:
+ if self.trex and CTRexScenario.server_logs and not self.no_daemon:
try:
print(termstyle.green('\n>>>>>>>>>>>>>>> Daemon log <<<<<<<<<<<<<<<'))
daemon_log = self.trex.get_trex_daemon_log()