Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions backends/arm/test/runner_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,9 @@ def assert_elf_path_exists(elf_path):
)


def get_elf_path(target_board: str, use_portable_ops: bool = False):
def get_elf_path(target_board: str, use_portable_ops: bool = False) -> str:
elf_path = ""

if target_board not in VALID_TARGET:
raise ValueError(f"Unsupported target: {target_board}")

Expand All @@ -729,14 +731,13 @@ def get_elf_path(target_board: str, use_portable_ops: bool = False):
f"arm_semihosting_executor_runner_{portable_ops_str}{target_board}",
"arm_executor_runner",
)
assert_elf_path_exists(elf_path)
elif target_board == "vkml_emulation_layer":
elf_path = os.path.join(
f"arm_test/arm_executor_runner_{portable_ops_str}vkml",
"executor_runner",
)
assert_elf_path_exists(elf_path)

assert_elf_path_exists(elf_path)
return elf_path


Expand Down
Loading