Menu

#121 logrotate_tests.sh fails on CentOS 4.4

Commands
closed-fixed
nobody
Testcases (113)
5
2007-04-18
2007-04-16
No

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

Discussion

  • Subrata Modak

    Subrata Modak - 2007-04-18

    Logged In: YES
    user_id=1737361
    Originator: NO

    Fixed.
    Thanks--
    Subrata

     
  • Subrata Modak

    Subrata Modak - 2007-04-18
    • status: open --> closed-fixed
     

Log in to post a comment.