Skip to content

Commit 104681d

Browse files
committed
Arm backend: skip add vfg test if not vkml executor runner found
Change-Id: I150b0f49229a8b2711a78f2005a69889dcf786bb
1 parent 899d7e5 commit 104681d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

backends/arm/test/ops/test_add.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from typing import Tuple
99

10+
import pytest
1011
import torch
1112
from executorch.backends.arm.quantizer import arm_quantizer
1213
from executorch.backends.arm.test import common, conftest
@@ -201,7 +202,10 @@ def test_add_tensor_vgf_FP(test_data: input_t1):
201202
tosa_version="TOSA-1.0+FP",
202203
run_on_vulkan_runtime=True,
203204
)
204-
pipeline.run()
205+
try:
206+
pipeline.run()
207+
except FileNotFoundError as e:
208+
pytest.skip(f"VKML executor_runner not found - not built - skip {e}")
205209

206210

207211
@common.parametrize("test_data", filtered_test_data)
@@ -215,4 +219,7 @@ def test_add_tensor_vgf_INT(test_data: input_t1):
215219
tosa_version="TOSA-1.0+INT",
216220
run_on_vulkan_runtime=True,
217221
)
218-
pipeline.run()
222+
try:
223+
pipeline.run()
224+
except FileNotFoundError as e:
225+
pytest.skip(f"VKML executor_runner not found - not built - skip {e}")

0 commit comments

Comments
 (0)