From 17137408d29d004e7ec1512ab7e6b7d30ff28ebe Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 26 Jul 2019 11:32:48 +0200 Subject: Use IsRunning exit code instead of variable --- include/tests_accounting | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/tests_accounting') diff --git a/include/tests_accounting b/include/tests_accounting index 2b2ceb46..93cd2162 100644 --- a/include/tests_accounting +++ b/include/tests_accounting @@ -139,8 +139,7 @@ if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Check auditd status" # Should not get kauditd - IsRunning auditd - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "auditd"; then LogText "Result: auditd running" Display --indent 2 --text "- Checking auditd" --result "${STATUS_ENABLED}" --color GREEN LINUX_AUDITD_RUNNING=1 @@ -277,8 +276,7 @@ Register --test-no ACCT-9650 --os Solaris --weight L --network NO --category security --description "Check Solaris audit daemon" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: check if audit daemon is running" - IsRunning auditd - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "auditd"; then LogText "Result: Solaris audit daemon is running" SOLARIS_AUDITD_RUNNING=1 AUDIT_DAEMON_RUNNING=1 -- cgit v1.2.3