test: fix UT script can't process cmd after reset:
test: fix UT script can't process cmd after reset:

There's still a small chance that can't process command issue still
happen on some runners. Now we change the way to detect if the runner
reset finished: input `-` to check test history for a few times until it
succeeded. If DUT can process check history command, then it should be
able to process other test commands.

armada-ai/esp-idf,espressif/esp-idf,armada-ai/esp-idf,espressif/esp-idf,armada-ai/esp-idf,espressif/esp-idf,espressif/esp-idf,armada-ai/esp-idf