mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
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>
20 lines
604 B
Python
20 lines
604 B
Python
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.target.qemu import OEQemuTarget
|
|
|
|
class QemuTinyTest(OERuntimeTestCase):
|
|
|
|
def test_boot_tiny(self):
|
|
# Until the target has explicit run_serial support, check that the
|
|
# target is the qemu runner
|
|
if isinstance(self.target, OEQemuTarget):
|
|
status, output = self.target.runner.run_serial('uname -a')
|
|
self.assertIn("Linux", output)
|
|
else:
|
|
self.skipTest("Target %s is not OEQemuTarget" % self.target)
|