summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/systemd.py
diff options
context:
space:
mode:
authorLucian Musat <georgex.l.musat@intel.com>2014-07-25 12:02:30 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-25 16:54:42 +0100
commit8e26ab7d52edd13ffa50b2d0b26606bea8890e76 (patch)
tree2b2bcfc87341d3a5136710c8412fb6348ce2069d /meta/lib/oeqa/runtime/systemd.py
parent242cceeedf2351e4337d8e45fb4c2c8360937ead (diff)
downloadpoky-8e26ab7d52edd13ffa50b2d0b26606bea8890e76.tar.gz
oeqa/rutime: Added testcase decorators for automated runtime tests. Also added LogResults decorator for oeTest class in oetest.py
(From OE-Core rev: 95b83084487d0712362ade8ac487999c3274bb96) Signed-off-by: Lucian Musat <georgex.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/systemd.py')
-rw-r--r--meta/lib/oeqa/runtime/systemd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/systemd.py b/meta/lib/oeqa/runtime/systemd.py
index 6de84f891b..1451698bb3 100644
--- a/meta/lib/oeqa/runtime/systemd.py
+++ b/meta/lib/oeqa/runtime/systemd.py
@@ -28,6 +28,7 @@ class SystemdBasicTests(SystemdTest):
28 def test_systemd_basic(self): 28 def test_systemd_basic(self):
29 self.systemctl('--version') 29 self.systemctl('--version')
30 30
31 @testcase(551)
31 @skipUnlessPassed('test_system_basic') 32 @skipUnlessPassed('test_system_basic')
32 def test_systemd_list(self): 33 def test_systemd_list(self):
33 self.systemctl('list-unit-files') 34 self.systemctl('list-unit-files')
@@ -51,6 +52,7 @@ class SystemdBasicTests(SystemdTest):
51 return (False, output) 52 return (False, output)
52 time.sleep(10) 53 time.sleep(10)
53 54
55 @testcase(550)
54 @skipUnlessPassed('test_systemd_basic') 56 @skipUnlessPassed('test_systemd_basic')
55 def test_systemd_failed(self): 57 def test_systemd_failed(self):
56 settled, output = self.settle() 58 settled, output = self.settle()
@@ -69,6 +71,7 @@ class SystemdServiceTests(SystemdTest):
69 def test_systemd_status(self): 71 def test_systemd_status(self):
70 self.systemctl('status --full', 'avahi-daemon.service') 72 self.systemctl('status --full', 'avahi-daemon.service')
71 73
74 @testcase(695)
72 @skipUnlessPassed('test_systemd_status') 75 @skipUnlessPassed('test_systemd_status')
73 def test_systemd_stop_start(self): 76 def test_systemd_stop_start(self):
74 self.systemctl('stop', 'avahi-daemon.service') 77 self.systemctl('stop', 'avahi-daemon.service')
@@ -76,6 +79,7 @@ class SystemdServiceTests(SystemdTest):
76 self.systemctl('start','avahi-daemon.service') 79 self.systemctl('start','avahi-daemon.service')
77 self.systemctl('is-active', 'avahi-daemon.service', verbose=True) 80 self.systemctl('is-active', 'avahi-daemon.service', verbose=True)
78 81
82 @testcase(696)
79 @skipUnlessPassed('test_systemd_basic') 83 @skipUnlessPassed('test_systemd_basic')
80 def test_systemd_disable_enable(self): 84 def test_systemd_disable_enable(self):
81 self.systemctl('disable', 'avahi-daemon.service') 85 self.systemctl('disable', 'avahi-daemon.service')