Including the rules in /etc/logrotate.d/ will cause the case failed when run it at the second time.
Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com> Signed-off-by: Cui Bixuan <cuibix...@huawei.com> --- testcases/commands/logrotate/logrotate_tests.sh | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh index 2a793cc..e845670 100755 --- a/testcases/commands/logrotate/logrotate_tests.sh +++ b/testcases/commands/logrotate/logrotate_tests.sh @@ -163,8 +163,6 @@ test01() compress # RPM packages drop log rotation information into this directory - include /etc/logrotate.d - /var/log/tst_logfile { rotate 5 weekly @@ -201,8 +199,6 @@ test01() # check if /etc/logrotate.d is included/ # check if 5 rotations are forced. # check if compression is done. - grep "including /etc/logrotate.d" $LTPTMP/tst_logrotate.out \ - > $LTPTMP/tst_logrotate.err 2>&1 || RC=$? grep "reading config file $LTPTMP/tst_logrotate.conf" \ $LTPTMP/tst_logrotate.out > $LTPTMP/tst_logrotate.err 2>&1 || RC=$? grep "forced from command line (5 rotations)" \ -- 1.6.0.2 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list