From 99e8cbda6d9ee6d710f01d1268d4aecb7fdd240b Mon Sep 17 00:00:00 2001 From: Sudeep Mohanty Date: Tue, 23 Sep 2025 10:05:39 +0200 Subject: [PATCH] feat(cmakev2): ruff formatting changes for test_components.py --- tools/test_build_system/test_components.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/test_build_system/test_components.py b/tools/test_build_system/test_components.py index f035e0ec647..b972cc7abf3 100644 --- a/tools/test_build_system/test_components.py +++ b/tools/test_build_system/test_components.py @@ -48,9 +48,12 @@ def test_component_extra_dirs(idf_py: IdfPyFunc, test_app_copy: Path) -> None: '# placeholder_before_include_project_cmake', 'set(EXTRA_COMPONENT_DIRS {})'.format(Path('different_main', 'main').as_posix()), ) - ret = idf_py('reconfigure') - assert str((test_app_copy / 'different_main' / 'main').as_posix()) in ret.stdout - assert str((test_app_copy / 'main').as_posix()) not in ret.stdout + idf_py('reconfigure') + + # Check project_description.json for component paths + data = json.load(open(test_app_copy / 'build' / 'project_description.json')) + assert str((test_app_copy / 'different_main' / 'main').as_posix()) in data.get('build_component_paths') + assert str((test_app_copy / 'main').as_posix()) not in data.get('build_component_paths') @pytest.mark.usefixtures('test_app_copy')