openthread CI: add delay to ensure that the dut can receive input command

This commit is contained in:
Xu Si Yu 2023-04-25 11:10:19 +08:00 committed by zhangwenxu
parent 46511c8fd1
commit f7e3f76899

View File

@ -106,14 +106,12 @@ def getDataset(dut:IdfDut) -> str:
def reset_thread(dut:IdfDut) -> None: def reset_thread(dut:IdfDut) -> None:
dut.write(' ') dut.expect('>')
dut.write('state') wait(dut, 3)
clean_buffer(dut)
wait(dut, 1)
dut.write('factoryreset') dut.write('factoryreset')
dut.expect('OpenThread attached to netif', timeout=20) dut.expect('OpenThread attached to netif', timeout=20)
dut.write(' ') dut.expect('>')
dut.write('state') wait(dut, 3)
# get the mleid address of the thread # get the mleid address of the thread