summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-03-10 11:33:39 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-03-10 11:33:39 +0200
commit834431083b4f9e6ac7eac00d5ec6682c92b16da9 (patch)
tree7b9a0293b2096dea198b14d7c52b9c4e6bfd94d0 /scripts/automation/regression
parent7991c5190ce31ae99533938eccad541181d49370 (diff)
regression: stl added 1 more map try + sleep
Diffstat (limited to 'scripts/automation/regression')
-rw-r--r--scripts/automation/regression/stateless_tests/stl_general_test.py5
-rwxr-xr-xscripts/automation/regression/trex_unit_test.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_general_test.py b/scripts/automation/regression/stateless_tests/stl_general_test.py
index f3bd5bfe..435c7eea 100644
--- a/scripts/automation/regression/stateless_tests/stl_general_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_general_test.py
@@ -54,6 +54,11 @@ class STLBasic_Test(CStlGeneral_Test):
CTRexScenario.stl_init_error = 'Client could not connect'
self.connect()
print ''
+ try:
+ stl_map_ports(CTRexScenario.stl_trex)
+ except:
+ pass
+ time.sleep(5)
CTRexScenario.stl_init_error = 'Client could not map ports'
CTRexScenario.stl_ports_map = stl_map_ports(CTRexScenario.stl_trex)
CTRexScenario.stl_init_error = 'Could not determine bidirectional ports'
diff --git a/scripts/automation/regression/trex_unit_test.py b/scripts/automation/regression/trex_unit_test.py
index 328a8040..c90d5bdc 100755
--- a/scripts/automation/regression/trex_unit_test.py
+++ b/scripts/automation/regression/trex_unit_test.py
@@ -180,7 +180,7 @@ class CTRexTestConfiguringPlugin(Plugin):
def begin (self):
if self.pkg and not CTRexScenario.is_copied and not self.no_ssh:
new_path = '/tmp/trex-scripts'
- rsync_template = 'rm -rf /tmp/trex-scripts; mkdir -p %s; rsync -Lc %s /tmp; tar -xzf /tmp/%s -C %s; mv %s/v*.*/* %s'
+ rsync_template = 'rm -rf /tmp/trex-scripts; mkdir -p %s; rsync -Lc %s /tmp; tar -mxzf /tmp/%s -C %s; mv %s/v*.*/* %s'
rsync_command = rsync_template % (new_path, self.pkg, os.path.basename(self.pkg), new_path, new_path, new_path)
return_code, stdout, stderr = trex_remote_command(self.configuration.trex, rsync_command, from_scripts = False)
if return_code: