diff options
author | rexlee8776 <limingjiang@huawei.com> | 2017-08-11 07:04:35 +0000 |
---|---|---|
committer | rexlee8776 <limingjiang@huawei.com> | 2017-08-11 07:20:02 +0000 |
commit | 36f0faeba773a092f65dfadb8149277a1c7fc7ee (patch) | |
tree | c4a009e946c0e8a42787ba5f82abb791ac655c82 /yardstick/benchmark/scenarios/networking/pktgen.py | |
parent | ec12a0a97fbc71bd44bf1ec7d6709991d8e1a332 (diff) |
bugfix: tc038 ssh default wait 3600s
JIRA: YARDSTICK-771
Change-Id: Ibcd2228505d341feb09b0d477e5f4ed6062c1e89
Signed-off-by: rexlee8776 <limingjiang@huawei.com>
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/pktgen.py')
-rw-r--r-- | yardstick/benchmark/scenarios/networking/pktgen.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yardstick/benchmark/scenarios/networking/pktgen.py b/yardstick/benchmark/scenarios/networking/pktgen.py index 8ca1ca60e..1e0a5fcbb 100644 --- a/yardstick/benchmark/scenarios/networking/pktgen.py +++ b/yardstick/benchmark/scenarios/networking/pktgen.py @@ -20,6 +20,7 @@ from yardstick.benchmark.scenarios import base LOG = logging.getLogger(__name__) +SSH_TIMEOUT = 60 VNIC_TYPE_LIST = ["ovs", "sriov"] SRIOV_DRIVER_LIST = ["ixgbevf", "i40evf"] @@ -287,7 +288,7 @@ class Pktgen(base.Scenario): "sudo iptables -A INPUT -p udp --dport 1000:%s -j DROP" \ % (1000 + self.number_of_ports) LOG.debug("Executing command: %s", cmd) - status, _, stderr = self.server.execute(cmd) + status, _, stderr = self.server.execute(cmd, timeout=SSH_TIMEOUT) if status: raise RuntimeError(stderr) @@ -349,7 +350,7 @@ class Pktgen(base.Scenario): duration, queue_number, pps) LOG.debug("Executing command: %s", cmd) - status, stdout, stderr = self.client.execute(cmd) + status, stdout, stderr = self.client.execute(cmd, timeout=SSH_TIMEOUT) if status: raise RuntimeError(stderr) |