Skip to content

Commit 379e77a

Browse files
authored
Merge pull request #400 from horw/fix/elf-not-found-linux
fix: linux elf not found explicit error msg
2 parents 5a9f318 + b23b2bd commit 379e77a

File tree

1 file changed

+3
-0
lines changed
  • pytest-embedded-idf/pytest_embedded_idf

1 file changed

+3
-0
lines changed

pytest-embedded-idf/pytest_embedded_idf/linux.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ def __init__(
4646
if self.app.target != 'linux':
4747
raise ValueError(f'Targets do not match. App target: {self.app.target}, Cmd target: "linux".')
4848

49+
if not self.app.elf_file:
50+
raise ValueError('No ELF file found. Please check the app build folder.')
51+
4952
super().__init__(cmd=[self.app.elf_file], **kwargs)
5053

5154
def hard_reset(self) -> None:

0 commit comments

Comments
 (0)