From 7229e1cce4a06cc2f3b2cb6fbcb2ddddb77b0320 Mon Sep 17 00:00:00 2001 From: valeros Date: Sat, 30 Sep 2023 12:09:36 +0300 Subject: [PATCH] Add missing Zephyr project files in tests for PIO Check --- tests/commands/test_check.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/commands/test_check.py b/tests/commands/test_check.py index 5403ee0fa7..d50a79a463 100644 --- a/tests/commands/test_check.py +++ b/tests/commands/test_check.py @@ -540,6 +540,16 @@ def test_check_embedded_platform_all_tools( """ ) + if framework == "zephyr": + zephyr_dir = tmpdir.mkdir("zephyr") + zephyr_dir.join("prj.conf").write("# nothing here") + zephyr_dir.join("CMakeLists.txt").write( + """cmake_minimum_required(VERSION 3.16.0) +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(hello_world) +target_sources(app PRIVATE ../src/main.c)""" + ) + tmpdir.join("platformio.ini").write(config) result = clirunner.invoke(cmd_check, ["--project-dir", str(tmpdir)]) validate_cliresult(result)