diff options
author | Miroslav Miklus <mmiklus@cisco.com> | 2016-10-26 16:49:26 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2016-10-27 20:25:48 +0000 |
commit | eca12f0b86528bbd02b3b5833f5ba022f18c1e0f (patch) | |
tree | a61d288d06dcfc064bd8c0e0a8472faec3f03cf7 /resources/libraries/python | |
parent | 87e234be3e708580d30c18280cdefbd22b0260fa (diff) |
Increase timeout for 'vpp restart' operations
Systemd first send SIGTERM and wait 90s (default value)
to send SIGKILL to terminate the vpp service.
Change-Id: Ia582cfdc4bebc5d3530e82692856fe733d0b001e
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r-- | resources/libraries/python/DUTSetup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index e176dd704a..78caeb79a4 100644 --- a/resources/libraries/python/DUTSetup.py +++ b/resources/libraries/python/DUTSetup.py @@ -31,7 +31,7 @@ class DUTSetup(object): if node['type'] == NodeType.DUT: ssh.connect(node) (ret_code, stdout, stderr) = \ - ssh.exec_command_sudo('service vpp restart') + ssh.exec_command_sudo('service vpp restart', timeout=120) if int(ret_code) != 0: logger.debug('stdout: {0}'.format(stdout)) logger.debug('stderr: {0}'.format(stderr)) @@ -89,7 +89,7 @@ class DUTSetup(object): (ret_code, stdout, stderr) = \ ssh.exec_command('sudo -Sn bash {0}/{1}/dut_setup.sh'.format( - Constants.REMOTE_FW_DIR, Constants.RESOURCES_LIB_SH)) + Constants.REMOTE_FW_DIR, Constants.RESOURCES_LIB_SH), timeout=120) logger.trace(stdout) logger.trace(stderr) if int(ret_code) != 0: |