summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/logrotate.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/runtime/logrotate.py')
-rw-r--r--meta/lib/oeqa/runtime/logrotate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/logrotate.py b/meta/lib/oeqa/runtime/logrotate.py
index de300bf55f..cf88c54dfa 100644
--- a/meta/lib/oeqa/runtime/logrotate.py
+++ b/meta/lib/oeqa/runtime/logrotate.py
@@ -12,6 +12,7 @@ def setUpModule():
12 12
13class LogrotateTest(oeRuntimeTest): 13class LogrotateTest(oeRuntimeTest):
14 14
15 @testcase(1544)
15 @skipUnlessPassed("test_ssh") 16 @skipUnlessPassed("test_ssh")
16 def test_1_logrotate_setup(self): 17 def test_1_logrotate_setup(self):
17 (status, output) = self.target.run('mkdir $HOME/logrotate_dir') 18 (status, output) = self.target.run('mkdir $HOME/logrotate_dir')
@@ -19,7 +20,7 @@ class LogrotateTest(oeRuntimeTest):
19 (status, output) = self.target.run("sed -i \"s#wtmp {#wtmp {\\n olddir $HOME/logrotate_dir#\" /etc/logrotate.conf") 20 (status, output) = self.target.run("sed -i \"s#wtmp {#wtmp {\\n olddir $HOME/logrotate_dir#\" /etc/logrotate.conf")
20 self.assertEqual(status, 0, msg = "Could not write to logrotate.conf file. Status and output: %s and %s)" % (status, output)) 21 self.assertEqual(status, 0, msg = "Could not write to logrotate.conf file. Status and output: %s and %s)" % (status, output))
21 22
22 @testcase(289) 23 @testcase(1542)
23 @skipUnlessPassed("test_1_logrotate_setup") 24 @skipUnlessPassed("test_1_logrotate_setup")
24 def test_2_logrotate(self): 25 def test_2_logrotate(self):
25 (status, output) = self.target.run('logrotate -f /etc/logrotate.conf') 26 (status, output) = self.target.run('logrotate -f /etc/logrotate.conf')