1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-06-06 14:50:03 +00:00

arm/oeqa/runtime/fvp_boot: move pexpect import into test method

Move the pexpect import inside the test method so that on machines without
pexpect installed we can still parse the test cases, even if this one
won't be pass.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2024-05-15 13:22:52 +00:00
committed by Jon Mason
parent f37a6b32ec
commit 200786d3a8
+2 -2
View File
@@ -1,8 +1,6 @@
# SPDX-License-Identifier: MIT
from oeqa.runtime.case import OERuntimeTestCase
import pexpect
class FVPBootTest(OERuntimeTestCase):
"""
@@ -11,6 +9,8 @@ class FVPBootTest(OERuntimeTestCase):
"""
def test_fvp_boot(self):
import pexpect
self.target.transition("off")
timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60)
self.target.transition("linux", timeout)