From b968e370fe2737233f138ffd67a5bff75a6de091 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Wed, 22 Jan 2020 16:38:39 +0100 Subject: FIX: Detection if l2fwd/l3fwd is up/down Change-Id: Ide5de222e8314a0ea0be59f9a478f8d59147f722 Signed-off-by: Jan Gelety --- resources/libraries/python/DPDK/DPDKTools.py | 2 +- resources/libraries/python/DPDK/L2fwdTest.py | 2 +- resources/libraries/python/DPDK/L3fwdTest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'resources/libraries') diff --git a/resources/libraries/python/DPDK/DPDKTools.py b/resources/libraries/python/DPDK/DPDKTools.py index ecb23fb4c3..868d2d886d 100644 --- a/resources/libraries/python/DPDK/DPDKTools.py +++ b/resources/libraries/python/DPDK/DPDKTools.py @@ -86,7 +86,7 @@ class DPDKTools: f"/cleanup_dpdk.sh {if1_driver} {pci_address1} {if2_driver} " \ f"{pci_address2}" - ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600) + ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1200) if ret_code != 0: raise RuntimeError( f"Failed to cleanup the dpdk at node {dut_node[u'host']}" diff --git a/resources/libraries/python/DPDK/L2fwdTest.py b/resources/libraries/python/DPDK/L2fwdTest.py index 56a055cfc5..de275f94af 100644 --- a/resources/libraries/python/DPDK/L2fwdTest.py +++ b/resources/libraries/python/DPDK/L2fwdTest.py @@ -52,7 +52,7 @@ class L2fwdTest: f"/run_l2fwd.sh {cpu_cores} {nb_cores} {queue_nums} {jumbo} " \ f"{arch}" - ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600) + ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1800) if ret_code != 0: raise RuntimeError( f"Failed to execute l2fwd test at node {dut_node['host']}" diff --git a/resources/libraries/python/DPDK/L3fwdTest.py b/resources/libraries/python/DPDK/L3fwdTest.py index 0a045c01bf..18becabd9b 100644 --- a/resources/libraries/python/DPDK/L3fwdTest.py +++ b/resources/libraries/python/DPDK/L3fwdTest.py @@ -73,7 +73,7 @@ class L3fwdTest: f"\"{port_config.rstrip(u',')}\" " \ f"{adj_mac0} {adj_mac1} {u'yes' if jumbo_frames else u'no'}" - ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600) + ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1800) if ret_code != 0: raise Exception( f"Failed to execute l3fwd test at node {dut_node[u'host']}" -- cgit 1.2.3-korg