arm/oeqa: Make linuxboot test case timeout configurable
PATCH 1/1 arm/oeqa: Make linuxboot test case timeout configurable
From: Peter Hoyes <[email protected]>
In complex stacks, e.g. with many cores or many init scripts, the time to Linux shell may be more than 10 minutes. Make the boot timeout configurable using TEST_FVP_LINUX_BOOT_TIMEOUT, leaving the default value at 10 minutes.
Issue-Id: SCM-4958
Signed-off-by Peter Hoyes <[email protected]>
Change-Id Ie074acd4b4509d0230d1f77a2a527d497bb295ce
--- documentation/oeqa-fvp.md | 2 +- meta-arm/lib/oeqa/runtime/cases/linuxboot.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
documentation/oeqa-fvp.md +1 -1
@@ -37,7 +37,7 @@ self.target.expect('default', r'root@.*\:~#', timeout=30) self.assertNotIn(b'ERROR:', self.target.before('tf-a')) ``` -For an example of a full test case, see meta-arm/lib/oeqa/runtime/cases/linuxboot.py This test case can be used to minimally verify that a machine boots to a Linux shell. +For an example of a full test case, see meta-arm/lib/oeqa/runtime/cases/linuxboot.py This test case can be used to minimally verify that a machine boots to a Linux shell. The default timeout is 10 minutes, but this can be configured with the variable TEST_FVP_LINUX_BOOT_TIMEOUT, which expects a value in seconds. The SSH interface described above is also available on OEFVPSerialTarget to support writing a set of hybrid test suites that use a combination of serial and SSH access. Note however that this test target does not guarantee that Linux has booted to shell prior to running any tests, so the test cases in OE-core are not supported.
meta-arm/lib/oeqa/runtime/cases/linuxboot.py +2 -1
@@ -12,7 +12,8 @@ class LinuxBootTest(OERuntimeTestCase): 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\:", timeout=10*60) + self.target.expect(self.console, r"login\:", self.timeout)
Signature · 1 line
2.25.1
Jon Mason
AppliedQuoted 4 lines · Peter Hoyes
In complex stacks, e.g. with many cores or many init scripts, the time to Linux shell may be more than 10 minutes. Make the boot timeout configurable using
TEST_FVP_LINUX_BOOT_TIMEOUT, leaving the default value at 10 minutes.
Applied, thanks!
[1/1] arm/oeqa: Make linuxboot test case timeout configurable
commit: 8c97ddc4233d658c6c74a14e501cb2b0022c9097
Best regards,
Signature · 1 line
Jon Mason <[email protected]>