From b62b36ffbb34839c794b6ec7c4522c22aa6fa1d7 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Mon, 15 Apr 2024 17:07:37 +0530 Subject: [PATCH] ci(otatool): fix test failure caused due to closing connection incorrectly --- examples/storage/parttool/pytest_parttool_example.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/storage/parttool/pytest_parttool_example.py b/examples/storage/parttool/pytest_parttool_example.py index 9f984cfc1a..88fe96cdcc 100644 --- a/examples/storage/parttool/pytest_parttool_example.py +++ b/examples/storage/parttool/pytest_parttool_example.py @@ -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')