diff --git a/include/tests_ports_packages b/include/tests_ports_packages index 937c27a1..812bd5df 100644 --- a/include/tests_ports_packages +++ b/include/tests_ports_packages @@ -409,12 +409,14 @@ FIND=`${DNFBINARY} -q updateinfo list sec | awk '{ if ($2=="security") {print $3}}'` if [ ! "${FIND}" = "" ]; then VULNERABLE_PACKAGES_FOUND=1 + LogText "Result: found vulnerable packages, upgrade of system needed." for PKG in ${FIND}; do Report "vulnerable_package[]=${I}" LogText "Vulnerable package: ${I}" # Decrease hardening points for every found vulnerable package AddHP 1 2 done + ReportWarning ${TEST_NO} "H" "Found one or more vulnerable packages. Run: dnf upgrade" else LogText "Result: no security updates found" AddHP 5 5 @@ -427,7 +429,7 @@ Register --test-no "PKGS-7354" --preqs-met ${PREQS_MET} --weight L --network NO --description "Checking package database integrity" if [ ${SKIPTEST} -eq 0 ]; then # Check for security updates - LogText "Action: checking updateinfo for security updates" + LogText "Action: checking integrity of package database" FIND=`${DNFBINARY} -q repoquery --duplicated` if [ ! "${FIND}" = "" ]; then Logtext "Result: found unexpected result on repoquery --duplicated"