diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2018-04-03 07:54:46 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:02 +0100 |
| commit | 602c7d65bb1d3f19b99b4f950442f298025f2104 (patch) | |
| tree | a449e273da7a4702aa3cb7a08c4faf246c1dffc8 /meta/lib/oeqa/runtime/cases/logrotate.py | |
| parent | 7a4684c381772b9605111a96f4baf9e8974b1bd7 (diff) | |
| download | poky-602c7d65bb1d3f19b99b4f950442f298025f2104.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.
(From OE-Core rev: 5b4aedd6b18b6ba6ca1bcd460a0b51ced41656cd)
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/cases/logrotate.py')
| -rw-r--r-- | meta/lib/oeqa/runtime/cases/logrotate.py | 4 |
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): | |||
| 21 | self.assertEqual(status, 0, msg = msg) | 21 | self.assertEqual(status, 0, msg = msg) |
| 22 | 22 | ||
| 23 | cmd = ('sed -i "s#wtmp {#wtmp {\\n olddir $HOME/logrotate_dir#"' | 23 | cmd = ('sed -i "s#wtmp {#wtmp {\\n olddir $HOME/logrotate_dir#"' |
| 24 | ' /etc/logrotate.conf') | 24 | ' /etc/logrotate.d/wtmp') |
| 25 | status, output = self.target.run(cmd) | 25 | status, output = self.target.run(cmd) |
| 26 | msg = ('Could not write to logrotate.conf file. Status and output: ' | 26 | msg = ('Could not write to logrotate.d/wtmp file. Status and output: ' |
| 27 | ' %s and %s' % (status, output)) | 27 | ' %s and %s' % (status, output)) |
| 28 | self.assertEqual(status, 0, msg = msg) | 28 | self.assertEqual(status, 0, msg = msg) |
| 29 | 29 | ||
