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

psh: enable test execution in new psh for imxrt117x #357

Merged
merged 3 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions psh/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ test:

- name: touch
harness: test-touch.py
# Due to #1097 issue: https://github.com/phoenix-rtos/phoenix-rtos-project/issues/1097
targets:
exclude: [armv7m7-imxrt117x-evk]

- name: touch-rootfs
harness: test-touch-rootfs.py
Expand Down
6 changes: 0 additions & 6 deletions psh/tools/psh.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,6 @@ def run(harness):
@functools.wraps(harness)
def wrapper_harness(*args, **kwargs):
dut = args[0]
# to avoid CI fails caused by https://github.com/phoenix-rtos/phoenix-rtos-project/issues/866
if trunner.ctx.target.name == "armv7m7-imxrt117x-evk":
ret = harness(*args, **kwargs)
# one prompt after a test should be left to be asserted by test runner
dut.sendline("\n")
return ret
init(dut)
try:
res = harness(*args, **kwargs)
Expand Down
6 changes: 0 additions & 6 deletions trunner/target/armv7m7.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,3 @@ class IMXRT106xEvkTarget(IMXTarget):
class IMXRT117xEvkTarget(IMXTarget):
name = "armv7m7-imxrt117x-evk"
image = PloImageProperty(file="phoenix.disk", source="usb0", memory_bank="flash0")

def build_test(self, test: TestOptions) -> Callable[[TestResult], TestResult]:
# FIXME due to https://github.com/phoenix-rtos/phoenix-rtos-project/issues/580 always reboot
test.should_reboot = True

return super().build_test(test)
Loading