mirror of https://github.com/CISOfy/lynis.git
Capture all skip tests which require root permissions
This commit is contained in:
parent
5c4c0f0ac0
commit
ac54b4fe83
|
@ -752,6 +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}"
|
||||
fi
|
||||
|
||||
# Skip test if it's configured in profile
|
||||
|
|
Loading…
Reference in New Issue