regression: stl added 1 more map try + sleep
authorYaroslav Brustinov <[email protected]>
Thu, 10 Mar 2016 09:33:39 +0000 (11:33 +0200)
committerYaroslav Brustinov <[email protected]>
Thu, 10 Mar 2016 09:33:39 +0000 (11:33 +0200)
scripts/automation/regression/stateless_tests/stl_general_test.py
scripts/automation/regression/trex_unit_test.py

index f3bd5bf..435c7ee 100644 (file)
@@ -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'
index 328a804..c90d5bd 100755 (executable)
@@ -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: