aboutsummaryrefslogtreecommitdiff
path: root/testcases/commands
diff options
context:
space:
mode:
authorCui Bixuan <cuibixuan@huawei.com>2015-07-07 17:13:30 +0800
committerAlexey Kodanev <alexey.kodanev@oracle.com>2015-07-09 08:52:33 +0300
commitf724c4a92d20aed757a776597c618a31cc351bcc (patch)
treec3b44c49c9a0750d8cbca077dbfa32cf7ff4fd03 /testcases/commands
parent74b818455667147352948e3cb8d6e753a47b4595 (diff)
commands/logrotate: remove /etc/logrotate.d/ include
So that the test rotates only "tst_logfile" test file. Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
Diffstat (limited to 'testcases/commands')
-rwxr-xr-xtestcases/commands/logrotate/logrotate_tests.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/testcases/commands/logrotate/logrotate_tests.sh b/testcases/commands/logrotate/logrotate_tests.sh
index 2a793cca2..f5a22ddde 100755
--- a/testcases/commands/logrotate/logrotate_tests.sh
+++ b/testcases/commands/logrotate/logrotate_tests.sh
@@ -162,9 +162,6 @@ test01()
# compress the log files
compress
- # RPM packages drop log rotation information into this directory
- include /etc/logrotate.d
-
/var/log/tst_logfile {
rotate 5
weekly
@@ -201,8 +198,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)" \