Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using armv7a9-zynq7000-qemu startup script without qemu control #352

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions trunner/target/emulated.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@

from trunner.ctx import TestContext
from trunner.dut import QemuDut
from trunner.harness import HarnessBuilder, RebooterHarness, ShellHarness, TestStartRunningHarness
from trunner.harness import (
HarnessBuilder,
RebooterHarness,
ShellHarness,
TestStartRunningHarness,
)
from trunner.types import TestOptions, TestResult
from .base import TargetBase

Expand All @@ -22,7 +27,9 @@ def __init__(self, script: str):
super().__init__()
self.script = script
# TODO Make sure that script path exists
self.dut = QemuDut(f"{self.project_dir}/scripts/{self.script}", encoding="utf-8")
self.dut = QemuDut(
f"{self.project_dir}/scripts/{self.script}", encoding="utf-8"
)
self.rebooter = QemuDutRebooter(self.dut)

@classmethod
Expand Down Expand Up @@ -99,7 +106,7 @@ class ARMv7A9Zynq7000QemuTarget(QemuTarget):
shell_prompt = "root@?:~ # "

def __init__(self):
super().__init__("armv7a9-zynq7000-qemu.sh")
super().__init__("armv7a9-zynq7000-qemu-test.sh")
# Start of the zynq target take around 45 seconds due to the slow filesystem initialization.
# Iterate over harness chain to find a ShellHarness to increase prompt_timeout value.
self.prompt_timeout = 60
Expand Down
Loading