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

Method copy_for_qemu

ci/compiler/esp32_artifacts.py:212–233  ·  view source on GitHub ↗

Copy all artifacts needed for QEMU testing.

(self, output_dir: Path, board_name: str)

Source from the content-addressed store, hash-verified

210 self.flash_config = flash_config
211
212 def copy_for_qemu(self, output_dir: Path, board_name: str) -> bool:
213 """Copy all artifacts needed for QEMU testing."""
214 output_dir.mkdir(parents=True, exist_ok=True)
215
216 copied: list[str] = []
217
218 # Copy required files
219 if not self._copy_required_files(output_dir, copied):
220 return False
221
222 # Copy optional files
223 self._copy_optional_files(output_dir, copied)
224
225 # Ensure partitions.csv exists (required by tobozo QEMU)
226 self._ensure_partitions_csv(output_dir, copied)
227
228 # Create merged flash image if artifacts are present
229 if self.artifacts.firmware:
230 self._create_flash_image(output_dir, board_name, copied)
231
232 self._print_summary(output_dir, copied)
233 return True
234
235 def _copy_required_files(self, output_dir: Path, copied: list[str]) -> bool:
236 """Copy required files for QEMU."""

Callers 1

copy_qemu_artifactsMethod · 0.95

Calls 5

_copy_required_filesMethod · 0.95
_copy_optional_filesMethod · 0.95
_create_flash_imageMethod · 0.95
_print_summaryMethod · 0.95

Tested by

no test coverage detected