From f7e3f76899345d2a7b73182ef60a2cc82692b782 Mon Sep 17 00:00:00 2001 From: Xu Si Yu Date: Tue, 25 Apr 2023 11:10:19 +0800 Subject: [PATCH] openthread CI: add delay to ensure that the dut can receive input command --- examples/openthread/ot_ci_function.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/openthread/ot_ci_function.py b/examples/openthread/ot_ci_function.py index b965ce1c79..d8f634fdab 100644 --- a/examples/openthread/ot_ci_function.py +++ b/examples/openthread/ot_ci_function.py @@ -106,14 +106,12 @@ def getDataset(dut:IdfDut) -> str: def reset_thread(dut:IdfDut) -> None: - dut.write(' ') - dut.write('state') - clean_buffer(dut) - wait(dut, 1) + dut.expect('>') + wait(dut, 3) dut.write('factoryreset') dut.expect('OpenThread attached to netif', timeout=20) - dut.write(' ') - dut.write('state') + dut.expect('>') + wait(dut, 3) # get the mleid address of the thread