espressif / pytest-embedded

A pytest plugin that designed for embedded testing
https://docs.espressif.com/projects/pytest-embedded/en/latest/
MIT License
92 stars 26 forks source link

fix(jtag): flush previous gdb responses before the first gdb command (RDT-857) #302

Closed erhankur closed 3 months ago

erhankur commented 3 months ago

In many test logs, I see a 'gdb no response' error. As I understand, this occurs due to a loss of synchronization between what we actually send and what is inside the response file. With this PR, we will ensure that before the first command, there will be no unevaluated response in the queue.

I also made some small changes that seem more logical to me.

erhankur commented 3 months ago

@hfudev PTAL