[CUPS-2308] removed exception handler, improved logging

This commit is contained in:
Michael Boelen 2017-03-20 13:12:55 +01:00
parent 72aed70677
commit 90e240cfb5
1 changed files with 6 additions and 7 deletions

View File

@ -146,12 +146,11 @@
N=$((N + 1)) N=$((N + 1))
FOUND=1 FOUND=1
done done
if [ ${FOUND} -eq 0 ]; then
ReportException "${TEST_NO}:1" "No listen statement found in CUPS configuration file"
fi
# Check if daemon is only running on localhost # Check if daemon is only running on localhost
if [ ${N} -eq 1 ]; then if [ ${FOUND} -eq 0 ]; then
LogText "Result: no listen statement found in CUPS configuration file"
elif [ ${N} -eq 1 ]; then
if [ "${FIND}" = "localhost:631" -o "${FIND}" = "127.0.0.1:631" ]; then if [ "${FIND}" = "localhost:631" -o "${FIND}" = "127.0.0.1:631" ]; then
LogText "Result: CUPS daemon only running on localhost" LogText "Result: CUPS daemon only running on localhost"
AddHP 2 2 AddHP 2 2