mirror of https://github.com/CISOfy/lynis.git
Show all tests uppercase and remove first space from list for correct display
This commit is contained in:
parent
dd378a0ca3
commit
9aa57362e6
|
@ -241,7 +241,7 @@
|
|||
|
||||
# Which tests to skip (skip-test=ABCD-1234 or skip-test=ABCD-1234:subtest)
|
||||
skip-test)
|
||||
STRING=`echo ${VALUE} | tr '[:upper:]' '[:lower:]'`
|
||||
STRING=`echo ${VALUE} | tr '[:lower:]' '[:upper:]'`
|
||||
SKIP_TESTS="${SKIP_TESTS} ${STRING}"
|
||||
;;
|
||||
|
||||
|
@ -353,7 +353,7 @@
|
|||
|
||||
# Deprecated: skip tests
|
||||
test_skip_always)
|
||||
STRING=`echo ${VALUE} | tr '[:upper:]' '[:lower:]'`
|
||||
STRING=`echo ${VALUE} | tr '[:lower:]' '[:upper:]'`
|
||||
SKIP_TESTS="${SKIP_TESTS} ${STRING}"
|
||||
LogText "[deprecated option] Tests to be skipped: ${VALUE}"
|
||||
DisplayToolTip "Replace deprecated option 'test_skip_always' and replace with 'skip-test' (add to custom.prf)"
|
||||
|
@ -384,6 +384,7 @@
|
|||
#
|
||||
#################################################################################
|
||||
#
|
||||
SKIP_TESTS=$(echo ${SKIP_TESTS} | sed "s/^ //")
|
||||
LogText "Skip tests: ${SKIP_TESTS}"
|
||||
#
|
||||
#################################################################################
|
||||
|
|
Loading…
Reference in New Issue