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

release/v5.0
harshal.patil 2024-04-15 17:07:37 +05:30
rodzic 98d17f23ef
commit b62b36ffbb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 5B5EC97C35B9A2E5
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -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')