Skip to content

Commit 208e7a3

Browse files
authored
Arm backend: skip add vfg test if not vkml executor runner found (#13864)
Fix for CI environments that are not setup yet.
1 parent 9034245 commit 208e7a3

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
@@ -212,7 +213,10 @@ def test_add_tensor_vgf_FP(test_data: input_t1):
212213
tosa_version="TOSA-1.0+FP",
213214
run_on_vulkan_runtime=True,
214215
)
215-
pipeline.run()
216+
try:
217+
pipeline.run()
218+
except FileNotFoundError as e:
219+
pytest.skip(f"VKML executor_runner not found - not built - skip {e}")
216220

217221

218222
@common.parametrize("test_data", filtered_test_data)
@@ -226,4 +230,7 @@ def test_add_tensor_vgf_INT(test_data: input_t1):
226230
tosa_version="TOSA-1.0+INT",
227231
run_on_vulkan_runtime=True,
228232
)
229-
pipeline.run()
233+
try:
234+
pipeline.run()
235+
except FileNotFoundError as e:
236+
pytest.skip(f"VKML executor_runner not found - not built - skip {e}")

0 commit comments

Comments
 (0)