From 7ac07039eacaf1c84dc234f5562bf826d5f8edae Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 15 Aug 2024 14:38:42 +0200 Subject: [PATCH] ci: remove idf-component-manager tests in idf --- tools/test_build_system/test_common.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/tools/test_build_system/test_common.py b/tools/test_build_system/test_common.py index e2ac7ff32c..0114319c74 100644 --- a/tools/test_build_system/test_common.py +++ b/tools/test_build_system/test_common.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: Apache-2.0 import logging import os @@ -13,7 +13,11 @@ from typing import List import pytest from _pytest.monkeypatch import MonkeyPatch -from test_build_system_helpers import IdfPyFunc, find_python, get_snapshot, replace_in_file, run_idf_py +from test_build_system_helpers import find_python +from test_build_system_helpers import get_snapshot +from test_build_system_helpers import IdfPyFunc +from test_build_system_helpers import replace_in_file +from test_build_system_helpers import run_idf_py def get_subdirs_absolute_paths(path: Path) -> List[str]: @@ -40,18 +44,6 @@ def test_compile_commands_json_updated_by_reconfigure(idf_py: IdfPyFunc) -> None snapshot_3.assert_different(snapshot_2) -@pytest.mark.usefixtures('test_app_copy') -def test_of_test_app_copy(idf_py: IdfPyFunc) -> None: - p = Path('main/idf_component.yml') - p.write_text('syntax_error\n') - try: - with (pytest.raises(subprocess.CalledProcessError)) as exc_info: - idf_py('reconfigure') - assert 'ERROR: Unknown format of the manifest file:' in exc_info.value.stderr - finally: - p.unlink() - - @pytest.mark.usefixtures('test_app_copy') def test_hints_no_color_output_when_noninteractive(idf_py: IdfPyFunc) -> None: """Check that idf.py hints don't include color escape codes in non-interactive builds"""