diff options
author | mboelen <michael@cisofy.com> | 2014-09-15 14:01:09 +0400 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-09-15 14:01:09 +0400 |
commit | c9fde8c2d11744cc0875bc3e5dd0abf096211755 (patch) | |
tree | 0997d08919db7ec4e2aa9065c3e9aaf1671c4d6f /include/tests_accounting | |
parent | 35d32fb5e40b86632677fd2256aebeddf926394a (diff) |
Code cleanup and small enhancements
Diffstat (limited to 'include/tests_accounting')
-rw-r--r-- | include/tests_accounting | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tests_accounting b/include/tests_accounting index e751b059..0894ee9a 100644 --- a/include/tests_accounting +++ b/include/tests_accounting @@ -30,11 +30,11 @@ Register --test-no ACCT-2754 --os FreeBSD --weight L --network NO --description "Check for available FreeBSD accounting information" if [ ${SKIPTEST} -eq 0 ]; then if [ -f /var/account/acct ]; then - Display --indent 2 --text "- Checking accounting information..." --result OK --color GREEN + Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN logtext "Result: /var/account/acct available" AddHP 3 3 else - Display --indent 2 --text "- Checking accounting information..." --result "NOT FOUND" --color YELLOW + Display --indent 2 --text "- Checking accounting information" --result "NOT FOUND" --color YELLOW logtext "Result: No accounting information available" logtext "Remark: Possibly there is another location where the accounting data is stored" ReportSuggestion ${TEST_NO} "Enable process accounting" @@ -51,19 +51,19 @@ if [ ${SKIPTEST} -eq 0 ]; then logtext "Test: Check accounting information" if [ -f /var/account/pacct ]; then - Display --indent 2 --text "- Checking accounting information..." --result OK --color GREEN + Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN logtext "Result: /var/account/pacct available" AddHP 3 3 elif [ -f /var/log/account/pacct ]; then - Display --indent 2 --text "- Checking accounting information..." --result OK --color GREEN + Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN logtext "Result: /var/log/account/pacct available" AddHP 3 3 elif [ -f /var/log/pacct ]; then - Display --indent 2 --text "- Checking accounting information..." --result OK --color GREEN + Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN logtext "Result: /var/log/pacct available" AddHP 3 3 else - Display --indent 2 --text "- Checking accounting information... " --result "NOT FOUND" --color YELLOW + Display --indent 2 --text "- Checking accounting information" --result "NOT FOUND" --color YELLOW logtext "Result: No accounting information available (/var/account/pacct does not exist)" logtext "Remark: Possibly there is another location where the accounting data is stored" ReportSuggestion ${TEST_NO} "Enable process accounting" |