diff --git a/trunner/test_runner.py b/trunner/test_runner.py index 4c40ca9b..4fc07fd2 100644 --- a/trunner/test_runner.py +++ b/trunner/test_runner.py @@ -257,6 +257,9 @@ def run_tests(self, tests: Sequence[TestOptions]) -> Sequence[TestResult]: if not self.ctx.target.rootfs and test.bootloader is not None and test.bootloader.apps: test.should_reboot = True + if self.ctx.should_flash and self.ctx.port: + self.target.dut.expect(r".+") + result = TestResult(test.name) self._print_test_header_begin(test)