mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
242cceeedf
commit
8e26ab7d52
@@ -28,6 +28,7 @@ class SystemdBasicTests(SystemdTest):
|
||||
def test_systemd_basic(self):
|
||||
self.systemctl('--version')
|
||||
|
||||
@testcase(551)
|
||||
@skipUnlessPassed('test_system_basic')
|
||||
def test_systemd_list(self):
|
||||
self.systemctl('list-unit-files')
|
||||
@@ -51,6 +52,7 @@ class SystemdBasicTests(SystemdTest):
|
||||
return (False, output)
|
||||
time.sleep(10)
|
||||
|
||||
@testcase(550)
|
||||
@skipUnlessPassed('test_systemd_basic')
|
||||
def test_systemd_failed(self):
|
||||
settled, output = self.settle()
|
||||
@@ -69,6 +71,7 @@ class SystemdServiceTests(SystemdTest):
|
||||
def test_systemd_status(self):
|
||||
self.systemctl('status --full', 'avahi-daemon.service')
|
||||
|
||||
@testcase(695)
|
||||
@skipUnlessPassed('test_systemd_status')
|
||||
def test_systemd_stop_start(self):
|
||||
self.systemctl('stop', 'avahi-daemon.service')
|
||||
@@ -76,6 +79,7 @@ class SystemdServiceTests(SystemdTest):
|
||||
self.systemctl('start','avahi-daemon.service')
|
||||
self.systemctl('is-active', 'avahi-daemon.service', verbose=True)
|
||||
|
||||
@testcase(696)
|
||||
@skipUnlessPassed('test_systemd_basic')
|
||||
def test_systemd_disable_enable(self):
|
||||
self.systemctl('disable', 'avahi-daemon.service')
|
||||
|
||||
Reference in New Issue
Block a user