aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-08-10 07:48:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-10 07:48:38 +0000
commit7f3ab61c2a072350f55a22bcd6a995ee18a3ba3e (patch)
tree1194649e46186f77dd07eeabb35e2f95264686a2 /functest
parentcd4716eb5fa3a12e256fba8faa75780b7398ff68 (diff)
parent7bc0ef7a9edee5e47d1766625e5b075cedc2a6e1 (diff)
Merge "Restrict ping only once in ping.sh"
Diffstat (limited to 'functest')
-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