aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
Diffstat (limited to 'testcases')
-rw-r--r--testcases/OpenStack/vPing/vPing_ssh.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/testcases/OpenStack/vPing/vPing_ssh.py b/testcases/OpenStack/vPing/vPing_ssh.py
index 5b392e866..4f83b874d 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