[PKGS-7381] Improved output of log and warning

This commit is contained in:
Michael Boelen 2016-09-22 14:54:55 +02:00
parent 6a7ec8795a
commit 9d91f7dac7
1 changed files with 1 additions and 2 deletions

View File

@ -623,7 +623,6 @@
LogText "Result: pkg audit results are clean"
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_NONE}" --color GREEN
else
LogText "Result: ${FIND}"
if [ ! -z "${FIND}" ]; then
VULNERABLE_PACKAGES_FOUND=1
Display --indent 2 --text "- Checking pkg audit to obtain vulnerable packages" --result "${STATUS_FOUND}" --color YELLOW
@ -633,7 +632,7 @@
LogText "Vulnerable package: ${ITEM}"
AddHP 1 2
done
ReportWarning ${TEST_NO} "Found vulnerable packages" "pkg" "text:${COUNT} vulnerable packages}"
ReportWarning ${TEST_NO} "Found vulnerable packages" "pkg" "text:${COUNT} vulnerable packages"
else
LogText "Result: found an exit code greater than zero, yet no output"
fi