summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/trex_unit_test.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-17 02:46:34 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-17 02:46:34 +0300
commitec23dc1a684c6a97d543336e739d5376751890b8 (patch)
tree608e60ad333c25a97ba5e8b32d5773b8ffb7d066 /scripts/automation/regression/trex_unit_test.py
parentf91190c71d0a2550364fdce909df297405fb5e43 (diff)
regression: load clean config several attempts, use custom number of cores at stateless.
Diffstat (limited to 'scripts/automation/regression/trex_unit_test.py')
-rwxr-xr-xscripts/automation/regression/trex_unit_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/automation/regression/trex_unit_test.py b/scripts/automation/regression/trex_unit_test.py
index 2be3c051..5d29ff31 100755
--- a/scripts/automation/regression/trex_unit_test.py
+++ b/scripts/automation/regression/trex_unit_test.py
@@ -218,7 +218,10 @@ class CTRexTestConfiguringPlugin(Plugin):
CTRexScenario.trex = CTRexClient(trex_host = self.configuration.trex['trex_name'], verbose = self.verbose_mode)
elif self.stateless:
if not self.no_ssh:
- trex_remote_command(self.configuration.trex, './t-rex-64 -i', background = True)
+ cores = self.configuration.trex.get('trex_cores', 1)
+ if 'virt_nics' in self.modes and cores > 1:
+ raise Exception('Number of cores should be 1 with virtual NICs')
+ trex_remote_command(self.configuration.trex, './t-rex-64 -i -c %s' % cores, background = True)
CTRexScenario.stl_trex = STLClient(username = 'TRexRegression',
server = self.configuration.trex['trex_name'],
verbose_level = self.verbose_mode)