From 8e26ab7d52edd13ffa50b2d0b26606bea8890e76 Mon Sep 17 00:00:00 2001 From: Lucian Musat Date: Fri, 25 Jul 2014 12:02:30 +0300 Subject: 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 Signed-off-by: Richard Purdie --- meta/lib/oeqa/runtime/systemd.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/lib/oeqa/runtime/systemd.py') 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): 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') -- cgit v1.2.3-54-g00ecf