Skip to content

Commit bb685d2

Browse files
twister: Look at SIMICS_PROJECT environment variable to find simics
While cmake/emu/simics.cmake uses SIMICS_PROJECT env var, twister checks if a build is "runnable" by checking if `simics` is executable, but it doesn't look at SIMICS_PROJECT env var. Signed-off-by: Ederson de Souza <[email protected]>
1 parent a9ea3c6 commit bb685d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/pylib/twister/twisterlib/platform.py

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def __init__(self, data: dict[str, str]):
3030
self.exec = data.get("exec")
3131

3232
def is_runnable(self) -> bool:
33+
if self.name == "simics":
34+
return shutil.which(self.exec, path=os.environ.get("SIMICS_PROJECT")) is not None
35+
3336
return not bool(self.exec) or bool(shutil.which(self.exec))
3437

3538
def __str__(self):

0 commit comments

Comments
 (0)