Skip to content

Commit 01efc71

Browse files
committed
fix(qemu): error when enable service qemu along without idf
1 parent a36cf66 commit 01efc71

File tree

1 file changed

+6
-3
lines changed
  • pytest-embedded-qemu/pytest_embedded_qemu

1 file changed

+6
-3
lines changed

pytest-embedded-qemu/pytest_embedded_qemu/qemu.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,13 @@ def execute_efuse_command(self, command: str):
236236

237237
@property
238238
def qemu_prog_name(self):
239-
if self.app:
240-
return self.app.qemu_prog_path
239+
try:
240+
if self.app:
241+
return self.app.qemu_prog_path
242+
except AttributeError: # if app is not QemuApp
243+
pass
241244

242-
logging.warning('App not set, use default qemu program name "%s"', self.QEMU_DEFAULT_PROG_PATH)
245+
logging.warning('App not set, use default qemu program name "%s"', self.QEMU_PROG_PATH)
243246
return self.QEMU_PROG_PATH
244247

245248
@property

0 commit comments

Comments
 (0)