From 3b77dad9a50b3fba44739507ba3f575aa78c71ba Mon Sep 17 00:00:00 2001 From: Stephen Jia Date: Tue, 11 Mar 2025 11:05:15 -0700 Subject: [PATCH] [ET][arm] Fix broken internal arm tests ## Context Fix test failures caused by https://github.com/pytorch/executorch/pull/9081 (D70889669). Apply suggested fix from @hsz. Also addresses T168807700 Differential Revision: [D70979587](https://our.internmc.facebook.com/intern/diff/D70979587/) [ghstack-poisoned] --- backends/arm/test/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/arm/test/conftest.py b/backends/arm/test/conftest.py index ddcd1ae52b3..4223ec7e681 100644 --- a/backends/arm/test/conftest.py +++ b/backends/arm/test/conftest.py @@ -32,7 +32,7 @@ def pytest_configure(config): pytest._test_options = {} # type: ignore[attr-defined] pytest._test_options["corstone_fvp"] = False # type: ignore[attr-defined] - if config.option.arm_run_corstoneFVP: + if getattr(config.option, "arm_run_corstoneFVP", False) and config.option.arm_run_corstoneFVP: corstone300_exists = shutil.which("FVP_Corstone_SSE-300_Ethos-U55") corstone320_exists = shutil.which("FVP_Corstone_SSE-320") if not (corstone300_exists and corstone320_exists):