From 399110d7e26e19ecd67a9f07ed56a8a40c1504f0 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: May 19 2014 14:25:27 +0000 Subject: Changed options for logwatch test (el7 compliant now) --- 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 $?