MCPcopy Create free account
hub / github.com/FastLED/FastLED / init

Function init

ci/tests/test_elf.py:27–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def init() -> None:
28 uno_build = PROJECT_ROOT / ".build" / "uno"
29 print(f"Checking for Uno build in: {uno_build}")
30 if not BUILD_INFO_PATH.exists() or not TOOLCHAIN_AVR.exists():
31 print("Uno build not found. Running compilation...")
32 try:
33 subprocess.run(
34 "uv run python -m ci.ci-compile uno --examples Blink",
35 shell=True,
36 check=True,
37 cwd=str(PROJECT_ROOT),
38 )
39 print("Compilation completed successfully.")
40 except subprocess.CalledProcessError as e:
41 print(f"Error during compilation: {e}")
42 raise
43
44
45class TestBinToElf(unittest.TestCase):

Callers 1

debug_attached.pyFile · 0.50

Calls 2

printFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected