From 625dde8e972f2586e986a46225ce87ebd3823b79 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Tue, 19 Jan 2016 11:53:39 +0100 Subject: Added vPing2 using SCP and SSH instead of nova userdata Change-Id: I194f88a4d213e5ad2225241420a9254878f4f7f4 Signed-off-by: jose.lausuch --- testcases/vPing/CI/libraries/ping.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testcases/vPing/CI/libraries/ping.sh (limited to 'testcases/vPing/CI/libraries/ping.sh') 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 -- cgit 1.2.3-korg