mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
ci(otatool): fix test failure caused due to closing connection incorrectly
This commit is contained in:
parent
98d17f23ef
commit
b62b36ffbb
@ -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
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@ -17,8 +16,7 @@ def test_examples_parttool(dut: Dut) -> None:
|
|||||||
dut.expect('Example end')
|
dut.expect('Example end')
|
||||||
|
|
||||||
# Close connection to DUT
|
# Close connection to DUT
|
||||||
dut.pexpect_proc.terminate()
|
dut.serial.close()
|
||||||
dut.serial.stop_redirect_thread()
|
|
||||||
|
|
||||||
# Run the example python script
|
# Run the example python script
|
||||||
idf_path = os.getenv('IDF_PATH')
|
idf_path = os.getenv('IDF_PATH')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user