Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-07-13 14:21:35 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-07-13 14:21:35 +0300
commit9aa57362e67382fd19263c33d99bbb9b3edc32d1 (patch)
treed2e248304b6e21703c303d63fd88c76777a93941
parentdd378a0ca32d7eba05d6c1875f4e00dd223a916f (diff)
Show all tests uppercase and remove first space from list for correct display
-rw-r--r--include/profiles5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/profiles b/include/profiles
index ecf73e55..be18781d 100644
--- a/include/profiles
+++ b/include/profiles
@@ -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}"
#
#################################################################################