diff --git a/tests/p_logwatch/logwatch_test.sh b/tests/p_logwatch/logwatch_test.sh index 95a487a..fe25128 100755 --- a/tests/p_logwatch/logwatch_test.sh +++ b/tests/p_logwatch/logwatch_test.sh @@ -3,6 +3,12 @@ t_Log "Running $0 - logwatch test." -logwatch --print | grep -q 'Logwatch End' +if [ "$centos_ver" = "7" ] ; then + lw_options="--range Today" +else + lw_options="--range Today --print" +fi + +logwatch ${lw_options}| grep -q 'Logwatch End' t_CheckExitStatus $?