Skip to contentSkip to conversation

LTPÅ cron tests fails

PATCH Caspar Zhang 1 participant 1 message Jul 20, 2010 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1854762285.628181279620112974.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com

#1 lore raw
Quoted 55 lines · ----- "Subrata Modak

Subject: LTPś cron_tests fails

Issues Description Below:
========================================

# vi runtest/cron_tests
cron_tests export TCdat=$LTPROOT/testcases/bin; cron_tests.sh
<EOF>

Run LTP with the following command:

# ./runltp -f cron_tests
<<<test_start>>>
tag=cron stime=1272004510
cmdline="export TCdat=$LTPROOT/testcases/bin; cron_tests.sh"
contacts=""
analysis=exit
<<<test_output>>>
cron01      0  TINFO  :  Test #1: crontab <filename> installs the
crontab file
cron01      0  TINFO  :  Test #1: cron schedules the job listed in
crontab
file.
cron01      0  TINFO  :  Test #1: Installing cron job ...
cron01      0  TINFO  :  Test #1: Cronjob installed successfully
cron01      0  TINFO  :  Test #1: /var/log/cron: Trying altenate
log...
cron01      1  TFAIL  :  Test #1: crontab activity not recorded in
/var/log/messages.
cron01      0  TINFO  :  Test #1: Values are good:
    Expected 8;     Received 8
cron01      0  TINFO  :  Test #1: Values are good:
    Expected 9;     Received 9
cron01      0  TINFO  :  Test #1: Values are good:
    Expected 10;     Received 10
cron01      0  TINFO  :  Test #1: Values are good:
    Expected 11;     Received 11
cron01      0  TINFO  :  Test #1: Values are good:
    Expected 12;     Received 12
cron01      0  TINFO  :  Test #1: /var/log/cron: alternate...
cron01      1  TFAIL  :  Test #1: Test failed. Reason:
cron02      0  TINFO  :  Test #2: crontab -r removes the crontab
file.
cron02      0  TINFO  :  Test #2: installing crontab file.
cron02      0  TINFO  :  Test #1: /var/log/cron: alternate...
cron02      2  TFAIL  :  Test #2: crontab activity not recorded in
var/log/messages.
cron02      0  TINFO  :  Test #2: uninstalling crontab file.
cron02      0  TINFO  :  Test #1: /var/log/cron: alternate...
cron02      2  TFAIL  :  Test #2: crontab activity not recorded in
var/log/messages.
cron03      0  TINFO  :  Test #3: crontab -l lists the cronjobs
installed
cron03      0  TINFO  :  Test #3: installing crontab file ...
cron03      0  TINFO  :  Test #3: Cron job installed.
cron03      0  TINFO  :  Test #3: crontab -l listed cronjob
tst2_cronprg.sh
Quoted 8 lines
cron03      0  TINFO  :  Test #3: uninstalling crontab file.
cron03      0  TINFO  :  crontab uninstalled all jobs for user
cron03      3  TPASS  :  crontab did not list any cronjobs
<<<execution_status>>>
initiation_status="ok"
duration=434 termination_type=exited termination_id=4 corefile=no
cutime=3 cstime=22
<<<test_end>>>

Hi,

I also triggered this failure on a RHEL6 machine, with rsyslog installed.

The failure occurs because log file recorded neither in /var/log/cron nor in /var/log/message. So it's easy to solve this problem: make sure corresponding cron logging item in /etc/rsyslog.conf exists and start rsyslog service.

Since you may use a different syslog service, it's hard to write a patch to this case. But the solution to this issue is similar above.

Thanks,
Caspar

Signature · 18 lines
Kernel Associate Quality Engineer
Red Hat Inc. (Beijing R&D Branch)

Red Hat China R&D Branch Unit 907, North Tower C, 
  Raycom Infotech Park, No.2 Kexueyuan Nanlu, 
  Haidian District, Beijing 100190

TEL: +86-10-62608150
Web: http://www.redhat.com/

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list