@@ -0,0 +1,1043 @@
+from oeqa.runtime.case import OERuntimeTestCase%0Afrom oeqa.core.decorator.depends import OETestDepends%0Afrom oeqa.core.decorator.oeid import OETestID%0Afrom oeqa.runtime.decorator.package import OEHasPackage%0A%0Aclass SanityCheckGDP(OERuntimeTestCase):%0A%0A    # Copied from the poky/meta/lib/oeqa/runtime/cases/systemd.py test%0A    def systemctl(self, action='', target='', expected=0, verbose=False):%0A        command = 'systemctl %25s %25s' %25 (action, target)%0A        status, output = self.target.run(command)%0A        message = '%5Cn'.join(%5Bcommand, output%5D)%0A        if status != expected and verbose:%0A            cmd = 'systemctl status --full %25s' %25 target%0A            message += self.target.run(cmd)%5B1%5D%0A        self.assertEqual(status, expected, message)%0A        return output%0A%0A    @OETestID(2000)%0A    @OETestDepends(%5B'ssh.SSHTest.test_ssh'%5D)%0A    @OETestDepends(%5B'systemd.SystemdServiceTests.test_systemd_disable_enable'%5D)%0A    @OEHasPackage(%5B%22weston%22%5D)%0A    def test_weston_running(self):%0A        self.systemctl('is-active', 'weston.service', verbose=True)%0A

add sample OE QA test