From b23b2bdd673509ce0144ce8064e864fd677586c3 Mon Sep 17 00:00:00 2001 From: horw Date: Wed, 28 Jan 2026 16:43:42 +0800 Subject: [PATCH] fix: linux elf not found explicit error msg --- pytest-embedded-idf/pytest_embedded_idf/linux.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pytest-embedded-idf/pytest_embedded_idf/linux.py b/pytest-embedded-idf/pytest_embedded_idf/linux.py index cc490ae1..65c5688d 100644 --- a/pytest-embedded-idf/pytest_embedded_idf/linux.py +++ b/pytest-embedded-idf/pytest_embedded_idf/linux.py @@ -46,6 +46,9 @@ def __init__( if self.app.target != 'linux': raise ValueError(f'Targets do not match. App target: {self.app.target}, Cmd target: "linux".') + if not self.app.elf_file: + raise ValueError('No ELF file found. Please check the app build folder.') + super().__init__(cmd=[self.app.elf_file], **kwargs) def hard_reset(self) -> None: