Hi, Any comments on the following patch?
Thanks, Peng Peng Haitao said the following on 2011-6-17 17:45: > > When executing "/opt/ltp/runltp" to test all the default cases, rsyslogd will > be dead after testing the cases of syslog, but the case of cron need rsyslogd > being running, otherwise cron will fail. > > Signed-off-by: Peng Haitao <[email protected]> > --- > testcases/commands/cron/cron_tests.sh | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/testcases/commands/cron/cron_tests.sh > b/testcases/commands/cron/cron_tests.sh > index a627ddb..49e29a6 100644 > --- a/testcases/commands/cron/cron_tests.sh > +++ b/testcases/commands/cron/cron_tests.sh > @@ -64,6 +64,11 @@ LOCTMP=${PWD}/tmp > TFAILCNT=0 > RC=0 > > +# Restart rsyslog service > +if command -v rsyslogd >/dev/null 2>&1; then > + /etc/init.d/rsyslog restart > +fi > + > # Test #1 > # Test if crontab <filename> installs the crontab file and cron schedules > the > # job correctly. -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
