mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Properly fail to work on systems which don't have the interface set up.
This commit is contained in:
parent
bedfa169b4
commit
2003deb5d1
@ -29,7 +29,7 @@ shift
|
|||||||
|
|
||||||
test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
|
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; }
|
; exit 1; }
|
||||||
|
|
||||||
# Set up any dynamically generated test data
|
# Set up any dynamically generated test data
|
||||||
|
@ -42,8 +42,14 @@ do
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
$NAMED -c named.conf -d 99 -g >named.run 2>&1 &
|
$NAMED -c named.conf -d 99 -g >named.run 2>&1 &
|
||||||
|
x=1
|
||||||
while test ! -f named.pid
|
while test ! -f named.pid
|
||||||
do
|
do
|
||||||
|
x=`expr $x + 1`
|
||||||
|
if [ $x = 5 ]; then
|
||||||
|
echo "I: Couldn't start servers!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user