]> granicus.if.org Git - esp-idf/commitdiff
test: ut can't process test command:
authorHe Yin Ling <heyinling@espressif.com>
Tue, 18 Sep 2018 02:55:41 +0000 (10:55 +0800)
committerHe Yin Ling <heyinling@espressif.com>
Wed, 19 Sep 2018 01:40:59 +0000 (09:40 +0800)
check ut reset done condition is not correct. If bootup pattern already
exist in cache, we will return without waiting for DUT bootup.

tools/unit-test-app/unit_test.py

index 1e20481445fd2a755ae19bc182c5adfcb0dcf2c3..2bac600a32205b9df4a0ddbb77cc4e44d47061a8 100755 (executable)
@@ -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.