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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user