Skip to content

Commit

Permalink
trunner: fix output after flash
Browse files Browse the repository at this point in the history
  • Loading branch information
maska989 committed Jan 14, 2025
1 parent 1c676a4 commit d9c7158
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trunner/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ def run_tests(self, tests: Sequence[TestOptions]) -> Sequence[TestResult]:
# Ensure first test will start with reboot
last_test_failed = True

# Unload data before starting tests
if self.ctx.should_flash is not False and self.ctx.target.experimental is False:
self.target.dut.expect(r".+")

for test in tests:
# By default we don't want to reboot the entire device to speed up the test execution)
# if not explicitly required by the test.
Expand Down

0 comments on commit d9c7158

Please sign in to comment.