summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/runtime/cases/logrotate.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/logrotate.py b/meta/lib/oeqa/runtime/cases/logrotate.py
index 8358793a24..bfa57c534a 100644
--- a/meta/lib/oeqa/runtime/cases/logrotate.py
+++ b/meta/lib/oeqa/runtime/cases/logrotate.py
@@ -35,7 +35,9 @@ class LogrotateTest(OERuntimeTestCase):
35 35
36 @OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup']) 36 @OETestDepends(['logrotate.LogrotateTest.test_1_logrotate_setup'])
37 def test_2_logrotate(self): 37 def test_2_logrotate(self):
38 status, output = self.target.run('logrotate -f /etc/logrotate.conf') 38 status, output = self.target.run('echo "create \n include /etc/logrotate.d" > /tmp/logrotate-test.conf')
39 status, output = self.target.run('logrotate -f /tmp/logrotate-test.conf')
40
39 msg = ('logrotate service could not be reloaded. Status and output: ' 41 msg = ('logrotate service could not be reloaded. Status and output: '
40 '%s and %s' % (status, output)) 42 '%s and %s' % (status, output))
41 self.assertEqual(status, 0, msg = msg) 43 self.assertEqual(status, 0, msg = msg)