Fix remote command execution in common.utils 79/58579/4
authorMiikka Koistinen <miikka.koistinen@nokia.com>
Fri, 15 Jun 2018 08:54:14 +0000 (11:54 +0300)
committerMiikka Koistinen <miikka.koistinen@nokia.com>
Tue, 31 Jul 2018 12:24:54 +0000 (15:24 +0300)
commit0b7647a5a6c85a8a1762ec4482004107989c8550
tree9eb9c235289116c4c782502eee2898af81334da3
parent7cd4ce42210b54ee27cc7e618d58f42177fdc5a3
Fix remote command execution in common.utils

yardstick.common.utils get_port_mac and get_port_ip both raise a
RuntimeError on positive remote command exit status. This commit fixes
them to use the error raising mechanism in yardstick.ssh.SSH.

Additionally, the class AutoConnectSSH class needed an additional
argument to allow the raising mechanism to work correctly.

JIRA: YARDSTICK-1240

Change-Id: Idad125ebbd668cef10a6149eb3e601a437a8d40d
Signed-off-by: Miikka Koistinen <miikka.koistinen@nokia.com>
yardstick/common/utils.py
yardstick/ssh.py
yardstick/tests/unit/common/test_utils.py