summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/cases/logrotate.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/runtime/cases/logrotate.py b/meta/lib/oeqa/runtime/cases/logrotate.py
index db6e695eef..d2666444e9 100644
--- a/meta/lib/oeqa/runtime/cases/logrotate.py
+++ b/meta/lib/oeqa/runtime/cases/logrotate.py
@@ -9,8 +9,12 @@ from oeqa.runtime.decorator.package import OEHasPackage
9class LogrotateTest(OERuntimeTestCase): 9class LogrotateTest(OERuntimeTestCase):
10 10
11 @classmethod 11 @classmethod
12 def setUpClass(cls):
13 cls.tc.target.run('cp /etc/logrotate.d/wtmp $HOME/wtmp.oeqabak')
14
15 @classmethod
12 def tearDownClass(cls): 16 def tearDownClass(cls):
13 cls.tc.target.run('rm -rf $HOME/logrotate_dir') 17 cls.tc.target.run('mv -f $HOME/wtmp.oeqabak /etc/logrotate.d/wtmp && rm -rf $HOME/logrotate_dir')
14 18
15 @OETestID(1544) 19 @OETestID(1544)
16 @OETestDepends(['ssh.SSHTest.test_ssh']) 20 @OETestDepends(['ssh.SSHTest.test_ssh'])