The logrotate test fails because it fails to grep "compressing new log with" from the test output, however my version of logrotate (logrotate-3.7.1-5.RHEL4)leaves out the word "new" and just prints "compressing log with". Apart from that it seems to be doing everything right so I think it's a bug in the test.
This patch makes it work for me, and would hopefully still work on versions of logrotate that say "compressing new..."
--- ltp-full-20070331/testcases/commands/logrotate/logrotate_tests.sh.orig 2007-04-16 16:54:11.000000000 +1000
+++ ltp-full-20070331/testcases/commands/logrotate/logrotate_tests.sh 2007-04-16 16:54:31.000000000 +1000
@@ -209,7 +209,7 @@
$LTPTMP/tst_logrotate.out &>$LTPTMP/tst_logrotate.err || RC=$?
grep "forced from command line (5 rotations)" \
$LTPTMP/tst_logrotate.out &>$LTPTMP/tst_logrotate.err || RC=$?
- grep "compressing new log with" \
+ egrep "compressing new| log with" \
$LTPTMP/tst_logrotate.out &>$LTPTMP/tst_logrotate.err || RC=$?
if [ $RC -ne 0 ]
then
Logged In: YES
user_id=1737361
Originator: NO
Fixed.
Thanks--
Subrata