diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-05-19 13:24:35 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-05-19 13:29:35 +0200 |
commit | 58c7d61bd5ceca0aed2b9e3888d0380970700029 (patch) | |
tree | 84b2af65e7614948aeb73ad8ce30fd3d4a4a10f7 /testcases | |
parent | 12caaf7f516c2c991a6eeddbf6353b7d587563b6 (diff) |
Fix path for vping.sh and exit if SCP fails
Change-Id: I28b394071ae739af60f7e7007cc54e96f13d39db
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/OpenStack/vPing/vPing_ssh.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testcases/OpenStack/vPing/vPing_ssh.py b/testcases/OpenStack/vPing/vPing_ssh.py index 5b392e86..4f83b874 100644 --- a/testcases/OpenStack/vPing/vPing_ssh.py +++ b/testcases/OpenStack/vPing/vPing_ssh.py @@ -393,12 +393,13 @@ def main(): scp = SCPClient(ssh.get_transport()) - ping_script = REPO_PATH + "testcases/vPing/ping.sh" + ping_script = REPO_PATH + "testcases/OpenStack/vPing/ping.sh" try: scp.put(ping_script, "~/") except: logger.error("Cannot SCP the file '%s' to VM '%s'" % (ping_script, floatip)) + return (EXIT_CODE) cmd = 'chmod 755 ~/ping.sh' (stdin, stdout, stderr) = ssh.exec_command(cmd) @@ -427,6 +428,7 @@ def main(): EXIT_CODE = 0 flag = True break + elif sec == PING_TIMEOUT: logger.info("Timeout reached.") flag = True |