From bc559240048df61c1c849b63e4e56dfa096429ab Mon Sep 17 00:00:00 2001 From: Glenn Andrews Date: Thu, 14 Mar 2024 22:12:33 -0700 Subject: [PATCH] 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 --- scripts/pylib/twister/twisterlib/testinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/testinstance.py b/scripts/pylib/twister/twisterlib/testinstance.py index 850da363278..5f00cbe901a 100644 --- a/scripts/pylib/twister/twisterlib/testinstance.py +++ b/scripts/pylib/twister/twisterlib/testinstance.py @@ -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