testminiwget.sh: display network confing in case of error
This commit is contained in:
parent
dfb3115bc3
commit
6600c52b67
|
@ -21,6 +21,10 @@ EXPECTEDFILE="${TMPD}/expectedfile"
|
|||
DOWNLOADEDFILE="${TMPD}/downloadedfile"
|
||||
PORT=
|
||||
RET=0
|
||||
IPCONFIG=$(which ifconfig)
|
||||
if [ -z "$IPCONFIG" ] ; then
|
||||
IPCONFIG="/sbin/ifconfig"
|
||||
fi
|
||||
|
||||
case "$HAVE_IPV6" in
|
||||
n|no|0)
|
||||
|
@ -46,6 +50,8 @@ while [ -z "$PORT" ]; do
|
|||
done
|
||||
if [ "$PORT" = "*** ERROR ***" ]; then
|
||||
echo "HTTP test server error"
|
||||
echo "Network config :"
|
||||
$IPCONFIG -a
|
||||
exit 2
|
||||
fi
|
||||
echo "Test HTTP server is listening on $PORT"
|
||||
|
|
Loading…
Reference in New Issue