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"
|
DOWNLOADEDFILE="${TMPD}/downloadedfile"
|
||||||
PORT=
|
PORT=
|
||||||
RET=0
|
RET=0
|
||||||
|
IPCONFIG=$(which ifconfig)
|
||||||
|
if [ -z "$IPCONFIG" ] ; then
|
||||||
|
IPCONFIG="/sbin/ifconfig"
|
||||||
|
fi
|
||||||
|
|
||||||
case "$HAVE_IPV6" in
|
case "$HAVE_IPV6" in
|
||||||
n|no|0)
|
n|no|0)
|
||||||
|
@ -46,6 +50,8 @@ while [ -z "$PORT" ]; do
|
||||||
done
|
done
|
||||||
if [ "$PORT" = "*** ERROR ***" ]; then
|
if [ "$PORT" = "*** ERROR ***" ]; then
|
||||||
echo "HTTP test server error"
|
echo "HTTP test server error"
|
||||||
|
echo "Network config :"
|
||||||
|
$IPCONFIG -a
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
echo "Test HTTP server is listening on $PORT"
|
echo "Test HTTP server is listening on $PORT"
|
||||||
|
|
Loading…
Reference in New Issue