Bugs item #1701305, was opened at 2007-04-16 07:40
Message generated for change (Comment added) made by subrata_modak
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1701305&group_id=3382
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Testcases
Group: Commands
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Katrina Maffey (kmaffey)
Assigned to: Nobody/Anonymous (nobody)
Summary: logrotate_tests.sh fails on CentOS 4.4
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Subrata (subrata_modak)
Date: 2007-04-18 06:10
Message:
Logged In: YES
user_id=1737361
Originator: NO
Fixed.
Thanks--
Subrata
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1701305&group_id=3382
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list