Skip to content

Commit

Permalink
Add missing Zephyr project files in tests for PIO Check
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Sep 30, 2023
1 parent 3e95134 commit 7229e1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/commands/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7229e1c

Please sign in to comment.