diff --git a/scripts/pylib/twister/twisterlib/platform.py b/scripts/pylib/twister/twisterlib/platform.py index b19f908b915..5c7ac81b102 100644 --- a/scripts/pylib/twister/twisterlib/platform.py +++ b/scripts/pylib/twister/twisterlib/platform.py @@ -30,6 +30,9 @@ class Simulator: self.exec = data.get("exec") def is_runnable(self) -> bool: + if self.name == "simics": + return shutil.which(self.exec, path=os.environ.get("SIMICS_PROJECT")) is not None + return not bool(self.exec) or bool(shutil.which(self.exec)) def __str__(self):