blob: 99a8e78bd1b1d25feaff6546d6219fe475ddec93 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# SPDX-License-Identifier: MIT
2
3from oeqa.runtime.case import OERuntimeTestCase
4
5
6class LinuxBootTest(OERuntimeTestCase):
7 """
8 This test case is only compatible with the OEFVPSerialTarget as it uses
9 the pexpect interface. It waits for a Linux login prompt on the default
10 console.
11 """
12
13 def setUp(self):
14 self.console = self.target.DEFAULT_CONSOLE
Patrick Williams92b42cb2022-09-03 06:53:57 -050015 self.timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60)
Brad Bishopbec4ebc2022-08-03 09:55:16 -040016
17 def test_linux_boot(self):
18 self.logger.info(f"{self.console}: Waiting for login prompt")
Patrick Williams92b42cb2022-09-03 06:53:57 -050019 self.target.expect(self.console, r"login\:", self.timeout)