2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Properly fail to work on systems which don't have the interface set up.

This commit is contained in:
Michael Sawyer
2000-06-09 22:23:42 +00:00
parent bedfa169b4
commit 2003deb5d1
2 changed files with 7 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ shift
test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
test -f /var/run/system_test_ifsetup || { echo "Interfaces not set up." >&2 \
test -f /var/run/system_test_ifsetup || { echo "I:Interfaces not set up. Not trying system tests." >&2 \
; exit 1; }
# Set up any dynamically generated test data

View File

@@ -42,8 +42,14 @@ do
fi
fi
$NAMED -c named.conf -d 99 -g >named.run 2>&1 &
x=1
while test ! -f named.pid
do
x=`expr $x + 1`
if [ $x = 5 ]; then
echo "I: Couldn't start servers!"
exit 1
fi
sleep 1
done
)