xref: /openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/_qemutiny.py (revision 2013739591dc50e6d01836d0017e7e5a02225709)
1#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7from oeqa.runtime.case import OERuntimeTestCase
8from oeqa.core.target.qemu import OEQemuTarget
9
10class QemuTinyTest(OERuntimeTestCase):
11
12    def test_boot_tiny(self):
13        # Until the target has explicit run_serial support, check that the
14        # target is the qemu runner
15        if isinstance(self.target, OEQemuTarget):
16            status, output = self.target.runner.run_serial('uname -a')
17            self.assertIn("Linux", output)
18        else:
19            self.skipTest("Target %s is not OEQemuTarget" % self.target)
20