bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_logwatch/logwatch_test.sh

Athmane Madjoudj 8846d4
#!/bin/sh
Athmane Madjoudj 8846d4
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 8846d4
Athmane Madjoudj 8846d4
t_Log "Running $0 - logwatch test."
Athmane Madjoudj 8846d4
Pablo Greco 33a881
if [ "$centos_ver" -ge 7 ] ; then
399110
 lw_options="--range Today"
399110
else
399110
 lw_options="--range Today --print"
399110
fi
399110
399110
logwatch ${lw_options}| grep -q 'Logwatch End'
Athmane Madjoudj 8846d4
Athmane Madjoudj 8846d4
t_CheckExitStatus $?