mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-10-15 17:27:09 +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 parent
f37a6b32ec
commit
200786d3a8
1 file changed
+2
-2
@@ -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