aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping/ping.sh
diff options
context:
space:
mode:
authorLinda Wang <wangwulin@huawei.com>2017-07-29 03:37:46 +0000
committerLinda Wang <wangwulin@huawei.com>2017-07-29 06:19:24 +0000
commit7bc0ef7a9edee5e47d1766625e5b075cedc2a6e1 (patch)
tree20b7169fb353175430d5fdb155ac02a56a8940e6 /functest/opnfv_tests/openstack/vping/ping.sh
parent1943d0b5aa9dde34d700b232dc9b8c53be80f197 (diff)
Restrict ping only once in ping.sh
Otherwise, it makes no sense to configure ping_timeout as 200 times. Change-Id: I6e15f5149f24a4316f6d5b70bcda9a46418d1522 Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping/ping.sh')
-rw-r--r--functest/opnfv_tests/openstack/vping/ping.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/functest/opnfv_tests/openstack/vping/ping.sh b/functest/opnfv_tests/openstack/vping/ping.sh
index 693b8682..15f5e84e 100644
--- a/functest/opnfv_tests/openstack/vping/ping.sh
+++ b/functest/opnfv_tests/openstack/vping/ping.sh
@@ -1,13 +1,10 @@
#!/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
+
+ping -c 1 $1 2>&1 >/dev/null
+RES=$?
+if [ "Z$RES" = "Z0" ] ; then
+ echo 'vPing OK'
+else
+ echo 'vPing KO'
+fi