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. -- 1.7.1 -- Best Regards, Peng Haitao ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
