aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/vPing/CI/libraries/ping.sh
diff options
context:
space:
mode:
authormei mei <meimei@huawei.com>2016-01-20 01:16:03 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-01-20 01:16:03 +0000
commit4f0ed6bee0ec6ec3d55da5684f96ea9741b14b57 (patch)
treeb3fe8b2bb0ac525ed059eb97a401239676d49c69 /testcases/vPing/CI/libraries/ping.sh
parent16e9bf66c5737e725a09064783599eb94e215095 (diff)
parent625dde8e972f2586e986a46225ce87ebd3823b79 (diff)
Merge "Added vPing2 using SCP and SSH instead of nova userdata"
Diffstat (limited to 'testcases/vPing/CI/libraries/ping.sh')
-rw-r--r--testcases/vPing/CI/libraries/ping.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/testcases/vPing/CI/libraries/ping.sh b/testcases/vPing/CI/libraries/ping.sh
new file mode 100644
index 00000000..693b8682
--- /dev/null
+++ b/testcases/vPing/CI/libraries/ping.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+while true; do
+ ping -c 1 $1 2>&1 >/dev/null
+ RES=$?
+ if [ "Z$RES" = "Z0" ] ; then
+ echo 'vPing OK'
+ break
+ else
+ echo 'vPing KO'
+ fi
+ sleep 1
+done \ No newline at end of file