From c32364b8203466d51d68b2017f35b6480d07faf6 Mon Sep 17 00:00:00 2001 From: Serafeim Zanikolas Date: Mon, 1 Mar 2010 20:05:35 +0100 Subject: [PATCH] run tests only if loopback interface is configured --- check.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/check.sh b/check.sh index ff3821f..01c3e57 100755 --- a/check.sh +++ b/check.sh @@ -1,5 +1,12 @@ #!/bin/bash +if /sbin/ifconfig | egrep -q '^lo[[:space:]]+Link'; then + echo "loopback interface is configured, getting on with tests" +else + echo "loopback interface is NOT configured, won't run tests" + exit 0 +fi + one="$(dirname "$0")/check-one.sh" for commands in "$@"; do -- 2.11.4.GIT