aboutsummaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2018-04-03 07:54:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-04 09:54:50 +0100
commit5b4aedd6b18b6ba6ca1bcd460a0b51ced41656cd (patch)
tree5a2ecbde0105d04d98ca7062ceaf6bf07d3c7063 /meta/lib/oeqa/runtime
parentac0bdebcc415f0ad448a41907d4e6a23f4855813 (diff)
downloadopenembedded-core-contrib-5b4aedd6b18b6ba6ca1bcd460a0b51ced41656cd.tar.gz
logrotate: update to 3.14.0
Since the wtmp and btmp definitions had been moved from logrotate.conf to logrotate.d in this release, we also need to install them to /etc/logrotate.d/. Also update oeqa runtime logrotate test case. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/cases/logrotate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/logrotate.py b/meta/lib/oeqa/runtime/cases/logrotate.py
index 992fef2989..db6e695eef 100644
--- a/meta/lib/oeqa/runtime/cases/logrotate.py
+++ b/meta/lib/oeqa/runtime/cases/logrotate.py
@@ -21,9 +21,9 @@ class LogrotateTest(OERuntimeTestCase):
self.assertEqual(status, 0, msg = msg)
cmd = ('sed -i "s#wtmp {#wtmp {\\n olddir $HOME/logrotate_dir#"'
- ' /etc/logrotate.conf')
+ ' /etc/logrotate.d/wtmp')
status, output = self.target.run(cmd)
- msg = ('Could not write to logrotate.conf file. Status and output: '
+ msg = ('Could not write to logrotate.d/wtmp file. Status and output: '
' %s and %s' % (status, output))
self.assertEqual(status, 0, msg = msg)