Skip to content

Commit bc55924

Browse files
glenn-andrewsnashif
authored andcommitted
twister: qemu: Fix device tests skipped when QEMU not installed
#67595 introduces a bug where if QEMU_BIN_PATH is not set on a Windows PC, on-device tests are skipped. This fixes that issue. Signed-off-by: Glenn Andrews <[email protected]>
1 parent 15f1e62 commit bc55924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib/testinstance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def check_runnable(self, enable_slow=False, filter='buildable', fixtures=[], har
215215
return False
216216

217217
# check presence of QEMU on Windows
218-
if 'QEMU_BIN_PATH' not in os.environ:
218+
if self.platform.simulation == 'qemu' and 'QEMU_BIN_PATH' not in os.environ:
219219
return False
220220

221221
# we asked for build-only on the command line

0 commit comments

Comments
 (0)