From: He Yin Ling Date: Tue, 18 Sep 2018 02:55:41 +0000 (+0800) Subject: test: ut can't process test command: X-Git-Tag: v3.2-beta1~129^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44e8ec584f1cdc3131601328a075f36a3c0a6752;p=esp-idf test: ut can't process test command: check ut reset done condition is not correct. If bootup pattern already exist in cache, we will return without waiting for DUT bootup. --- diff --git a/tools/unit-test-app/unit_test.py b/tools/unit-test-app/unit_test.py index 1e20481445..2bac600a32 100755 --- a/tools/unit-test-app/unit_test.py +++ b/tools/unit-test-app/unit_test.py @@ -141,6 +141,8 @@ def replace_app_bin(dut, name, new_app_bin): def reset_dut(dut): + # We do flush before test, in case we already have bootup pattern in data cache + dut.write("", flush=True) dut.reset() # esptool ``run`` cmd takes quite long time. # before reset finish, serial port is closed. therefore DUT could already bootup before serial port opened.