mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
fix: Test names are different. (#228)
After changes in 9aa5736 the test names are different. This results in something like BOOT-5122 = boot-5122 and skipped test aren't skipped anymore.
This commit is contained in:
parent
2abaefeb21
commit
8aeba9fa3d
@ -1793,13 +1793,13 @@
|
|||||||
|
|
||||||
# Skip test if it's configured in profile (old style)
|
# Skip test if it's configured in profile (old style)
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FIND=`echo "${TEST_SKIP_ALWAYS}" | grep "${TEST_NO}" | tr '[:upper:]' '[:lower:]'`
|
FIND=`echo "${TEST_SKIP_ALWAYS}" | grep "${TEST_NO}" | tr '[:lower:]' '[:upper:]'`
|
||||||
if [ ! "${FIND}" = "" ]; then SKIPTEST=1; SKIPREASON="Skipped by configuration"; fi
|
if [ ! "${FIND}" = "" ]; then SKIPTEST=1; SKIPREASON="Skipped by configuration"; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if this test is on the list to skip
|
# Check if this test is on the list to skip
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
VALUE=`echo ${TEST_NO} | tr '[:upper:]' '[:lower:]'`
|
VALUE=`echo ${TEST_NO} | tr '[:lower:]' '[:upper:]'`
|
||||||
for I in ${SKIP_TESTS}; do
|
for I in ${SKIP_TESTS}; do
|
||||||
if [ "${I}" = "${VALUE}" ]; then SKIPTEST=1; SKIPREASON="Skipped by configuration (skip-test)"; fi
|
if [ "${I}" = "${VALUE}" ]; then SKIPTEST=1; SKIPREASON="Skipped by configuration (skip-test)"; fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user