blob: 99a8e78bd1b1d25feaff6546d6219fe475ddec93 [file] [log] [blame]
# SPDX-License-Identifier: MIT
from oeqa.runtime.case import OERuntimeTestCase
class LinuxBootTest(OERuntimeTestCase):
"""
This test case is only compatible with the OEFVPSerialTarget as it uses
the pexpect interface. It waits for a Linux login prompt on the default
console.
"""
def setUp(self):
self.console = self.target.DEFAULT_CONSOLE
self.timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60)
def test_linux_boot(self):
self.logger.info(f"{self.console}: Waiting for login prompt")
self.target.expect(self.console, r"login\:", self.timeout)