Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: MIT |
| 2 | |
| 3 | from oeqa.runtime.case import OERuntimeTestCase |
| 4 | |
| 5 | |
| 6 | class 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 Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 15 | self.timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60) |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 16 | |
| 17 | def test_linux_boot(self): |
| 18 | self.logger.info(f"{self.console}: Waiting for login prompt") |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 19 | self.target.expect(self.console, r"login\:", self.timeout) |