Skip to content

Commit cf94342

Browse files
committed
Update on "[ExecuTorch] Arm Ethos: Add pass tests"
As title. Adds pytest.test_option["tosa_ref_model"] similar to "corestone_fvp". This is a hack. Once we buckify the reference model, we should remove this. It shouldn't have impact on the OSS test coverage. Differential Revision: [D69714010](https://our.internmc.facebook.com/intern/diff/D69714010/) [ghstack-poisoned]
2 parents 0f7ceed + bb2a44d commit cf94342

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

backends/arm/test/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from typing import Any
1414

1515
import pytest
16-
import logging
1716

1817
try:
1918
import tosa_reference_model
@@ -43,7 +42,7 @@ def pytest_configure(config):
4342
"Tests are run with --arm_run_corstoneFVP but corstone FVP is not installed."
4443
)
4544
# Only enable if we also have the TOSA reference model available.
46-
pytest._test_options["corstone_fvp"] = tosa_reference_model is not None # type: ignore[attr-defined]
45+
pytest._test_options["corstone_fvp"] = True # type: ignore[attr-defined]
4746

4847
pytest._test_options["fast_fvp"] = False # type: ignore[attr-defined]
4948
if getattr(config.option, "fast_fvp", False):

backends/arm/test/targets.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ def define_arm_tests():
55
# TODO Add more tests
66
test_files = native.glob(["passes/test_*.py"])
77

8+
# https://github.com/pytorch/executorch/issues/8606
9+
test_files.remove("passes/test_ioquantization_pass.py")
10+
811
TESTS = {}
912

1013
for test_file in test_files:

0 commit comments

Comments
 (0)