From f07db4ef4d590bbffafbb8a9c54990484dfc8a5e 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/storage/parttool/pytest_parttool_example.py b/examples/storage/parttool/pytest_parttool_example.py index 82dcebd29c1f..0f4cfc5f112e 100644 --- a/examples/storage/parttool/pytest_parttool_example.py +++ b/examples/storage/parttool/pytest_parttool_example.py @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022-2023 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 @@ -16,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')