twister: qemu: Fix device tests skipped when QEMU not installed

https://github.com/zephyrproject-rtos/zephyr/pull/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 <glenn.andrews.42@gmail.com>
This commit is contained in:
Glenn Andrews 2024-03-14 22:12:33 -07:00 committed by Anas Nashif
commit bc55924004

View file

@ -215,7 +215,7 @@ class TestInstance:
return False
# check presence of QEMU on Windows
if 'QEMU_BIN_PATH' not in os.environ:
if self.platform.simulation == 'qemu' and 'QEMU_BIN_PATH' not in os.environ:
return False
# we asked for build-only on the command line