Skip to contentSkip to conversation

cron* needs to check for crontab before executing testcases

LTP Garrett Cooper 1 participant 1 message Oct 14, 2009

lore
Share & tools
lore
#0 lore raw

crontab is required for cron01 and cron02, and should be checked at the start of the test, but isn't:

<<<test_start>>>
tag=cron stime=1255544619
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      1  TBROK  :  Test #1: crontab Broke while installing
cronjob. Reason:
/tests/ltp/testcases/bin/cron_tests.sh: line 102: crontab: command not found
cron01      2  TBROK  :  Remaining cases broken
cron01      3  TBROK  :  Remaining cases broken
cron01      0  TINFO  :  Test #1: /var/log/cron: Trying altenate log...
cron01      1  TFAIL  :  Test #1: crontab activity not recorded in

/var/log/messages.
awk: cmd. line:2: fatal: cannot open file `/tmp/tst1_cron.out' for reading (No such file or directory)
awk: cmd. line:2: fatal: cannot open file `/tmp/tst1_cron.out' for reading (No such file or directory)

cron01      1  TFAIL  :  Test #1: Problem with /tmp/tst1_cron.out file
cron01      1  TFAIL  :  Test #1: Cause: TS_MIN1= ; TS_MIN2=
cron01      1  TFAIL  :  Test #1: Cron did not execute every minute
cron02      0  TINFO  :  Test #2: crontab -r removes the crontab file.
cron02      0  TINFO  :  Test #2: installing crontab file.
cron02      2  TBROK  :  Test #2: crontab Broke while installing
cronjob. Reason:
/tests/ltp/testcases/bin/cron_tests.sh: line 267: crontab: command not found
cron02      3  TBROK  :  Remaining cases broken
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      2  TBROK  :  Test #2: crontab Broke while installing
cronjob. Reason:
/tests/ltp/testcases/bin/cron_tests.sh: line 299: crontab: command not found
cron02      3  TBROK  :  Remaining cases broken
cron03      0  TINFO  :  Test #3: crontab -l lists the cronjobs installed
cron03      0  TINFO  :  Test #3: installing crontab file ...
cron03      3  TBROK  :  Test #3: crontab failed while installing cronjob
/tests/ltp/testcases/bin/cron_tests.sh: line 362: crontab: command not found
cron03      3  TBROK  :  Test #3: crontab failed while listing
cronjobs installed
cron03      0  TINFO  :  Test #3: uninstalling crontab file.
cron03      3  TBROK  :  Test #3: crontab failed while removing cronjob
cron03      3  TFAIL  :  Test #3: crontab failed removing cronjob. Reason:

<<<execution_status>>>
initiation_status="ok"
duration=159 termination_type=exited termination_id=10 corefile=no cutime=6 cstime=9
<<<test_end>>>

Thanks,
-Garrett

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list