mirror of https://github.com/CISOfy/lynis.git
Log what tests are skipped to be root-only
This commit is contained in:
parent
0da19d1297
commit
310febde05
|
@ -752,7 +752,7 @@
|
|||
if [ ${ROOT_ONLY} -eq 1 -a ! ${MYID} = "0" ]; then
|
||||
SKIPTEST=1; SKIPREASON="This test needs root permissions"
|
||||
Debug "Test ${TEST_NO} skipped as this one required root permissions to work"
|
||||
SKIPPED_TESTS_ROOTONLY="${SKIPPED_TESTS_ROOTONLY}====${TEST_NO}-${TEST_DESCRIPTION}"
|
||||
SKIPPED_TESTS_ROOTONLY="${SKIPPED_TESTS_ROOTONLY}====${TEST_NO}:space:${TEST_DESCRIPTION}"
|
||||
fi
|
||||
|
||||
# Skip test if it's configured in profile
|
||||
|
|
Loading…
Reference in New Issue