Merge branch 'fix/incorrect_connection_closure_parttool_test_v5.1' into 'release/v5.1'

ci(otatool): fix test failure caused due to closing connection incorrectly (v5.1)

See merge request espressif/esp-idf!30292
This commit is contained in:
Mahavir Jain 2024-05-10 20:32:35 +08:00
commit 41de6d2f90

View File

@ -1,6 +1,5 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import os
import subprocess
import sys
@ -17,8 +16,7 @@ def test_examples_parttool(dut: Dut) -> None:
dut.expect('Example end')
# Close connection to DUT
dut.pexpect_proc.terminate()
dut.serial.stop_redirect_thread()
dut.serial.close()
# Run the example python script
idf_path = os.getenv('IDF_PATH')