Skip to content

Commit

Permalink
trunner: add missing expect during flash procedure
Browse files Browse the repository at this point in the history
It is essential to include an assertion after performing a reboot to verify that PSH has loaded correctly and to avoid excessive output during the subsequent test case.
  • Loading branch information
maska989 committed Jan 13, 2025
1 parent 1c676a4 commit b1a6bc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions trunner/harness/plo.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ def __call__(self):

self.rebooter(flash=False, hard=True)

try:
self.dut.expect_exact(f"(psh)%", timeout=10)

Check warning on line 289 in trunner/harness/plo.py

View workflow job for this annotation

GitHub Actions / build (3.10)

F541 f-string is missing placeholders

Check warning on line 289 in trunner/harness/plo.py

View workflow job for this annotation

GitHub Actions / build (3.11)

F541 f-string is missing placeholders

Check warning on line 289 in trunner/harness/plo.py

View workflow job for this annotation

GitHub Actions / build (3.9)

F541 f-string is missing placeholders
except pexpect.TIMEOUT as e:
raise PloError("Error: missing psh prompt after flash!", output=self.dut.before) from e


class PloPhoenixdAppLoader(TerminalHarness, PloInterface):
"""Harness to load the binaries to syspage using plo bootloader.
Expand Down

0 comments on commit b1a6bc8

Please sign in to comment.