Fixes netcat for multiple platforms
authorTim Rozet <trozet@redhat.com>
Tue, 12 Jan 2016 15:14:11 +0000 (10:14 -0500)
committerTim Rozet <trozet@redhat.com>
Tue, 12 Jan 2016 15:16:24 +0000 (10:16 -0500)
netcat package on LF POD1 missing -z arg.  This update allows for netcat
to be used when platforms are missing it.

Change-Id: I09fb9986520018a92a1c9147a2948ae5029bb3e3
Signed-off-by: Tim Rozet <trozet@redhat.com>
testcases/VIM/OpenStack/CI/libraries/check_os.sh

index 88c7607..5602052 100755 (executable)
@@ -8,7 +8,7 @@
 
 verify_connectivity() {
     for i in $(seq 0 10); do
-        if nc -vz $1 $2 &>/dev/null; then
+        if echo "test" | nc -v $1 $2 &>/dev/null; then
             return 0
         fi
         sleep 1