twister: fix simulation conditional

non-simulation platforms set key to 'na', we need to check for that
instead of just checking for existance of key.

Fixes #52595

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-11-28 12:21:58 -05:00 committed by Marti Bolivar
commit ef7d0d6c01

View file

@ -140,7 +140,7 @@ class TestInstance:
options = env.options
handler = Handler(self, "")
if self.platform.simulation:
if self.platform.simulation != "na":
if self.platform.simulation == "qemu":
handler = QEMUHandler(self, "qemu")
handler.args.append(f"QEMU_PIPE={handler.get_fifo()}")