diff options
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/_qemutiny.py')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/_qemutiny.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/_qemutiny.py b/meta/lib/oeqa/runtime/cases/_qemutiny.py index 6886e36502..816fd4a7cb 100644 --- a/meta/lib/oeqa/runtime/cases/_qemutiny.py +++ b/meta/lib/oeqa/runtime/cases/_qemutiny.py | |||
@@ -1,12 +1,19 @@ | |||
1 | # | 1 | # |
2 | # Copyright OpenEmbedded Contributors | ||
3 | # | ||
2 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
3 | # | 5 | # |
4 | 6 | ||
5 | from oeqa.runtime.case import OERuntimeTestCase | 7 | from oeqa.runtime.case import OERuntimeTestCase |
8 | from oeqa.core.target.qemu import OEQemuTarget | ||
6 | 9 | ||
7 | class QemuTinyTest(OERuntimeTestCase): | 10 | class QemuTinyTest(OERuntimeTestCase): |
8 | 11 | ||
9 | def test_boot_tiny(self): | 12 | def test_boot_tiny(self): |
10 | status, output = self.target.run_serial('uname -a') | 13 | # Until the target has explicit run_serial support, check that the |
11 | msg = "Cannot detect poky tiny boot!" | 14 | # target is the qemu runner |
12 | self.assertTrue("yocto-tiny" in output, msg) | 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) | ||