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 |
| 15 | |
| 16 | def test_linux_boot(self): |
| 17 | self.logger.info(f"{self.console}: Waiting for login prompt") |
| 18 | self.target.expect(self.console, r"login\:", timeout=10*60) |