diff options
author | Ross Burton <ross.burton@arm.com> | 2023-10-10 13:54:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-11 09:43:45 +0100 |
commit | d44333b92ce8cff60e89ba7b43bbc785bb3bdc75 (patch) | |
tree | eb0820a05a8a7dc3af5138c2b2764f2b0b7865f7 /meta/lib/oeqa/runtime | |
parent | 3044b4e3f8e59279650f35ad498d38cb0ec5e660 (diff) | |
download | poky-d44333b92ce8cff60e89ba7b43bbc785bb3bdc75.tar.gz |
oeqa/runtime/_qemutiny: rewrite test to be functional
The _qemutiny is a small test case that was explicitly designed to do a
minimal level of testing for poky-tiny images. These typically don't
have SSH servers so we need to assume that qemu is being used and access
the serial console directly.
(From OE-Core rev: 2245b2754d6f4798127ce85a2ab7cb48f458c1f7)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/_qemutiny.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/cases/_qemutiny.py b/meta/lib/oeqa/runtime/cases/_qemutiny.py index 14ff8b98b2..816fd4a7cb 100644 --- a/meta/lib/oeqa/runtime/cases/_qemutiny.py +++ b/meta/lib/oeqa/runtime/cases/_qemutiny.py | |||
@@ -5,10 +5,15 @@ | |||
5 | # | 5 | # |
6 | 6 | ||
7 | from oeqa.runtime.case import OERuntimeTestCase | 7 | from oeqa.runtime.case import OERuntimeTestCase |
8 | from oeqa.core.target.qemu import OEQemuTarget | ||
8 | 9 | ||
9 | class QemuTinyTest(OERuntimeTestCase): | 10 | class QemuTinyTest(OERuntimeTestCase): |
10 | 11 | ||
11 | def test_boot_tiny(self): | 12 | def test_boot_tiny(self): |
12 | status, output = self.target.run_serial('uname -a') | 13 | # Until the target has explicit run_serial support, check that the |
13 | msg = "Cannot detect poky tiny boot!" | 14 | # target is the qemu runner |
14 | 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) | ||