From 02a5675acfb5bf91859255dfea3a34671417644d Mon Sep 17 00:00:00 2001 From: Sebastian Larsson Date: Mon, 27 Jul 2026 11:48:53 +0200 Subject: [PATCH] Arm backend: Handle empty target-less model suite Treat pytest status 5 as success when the target-less selector finds no tests. Preserve all other failure statuses. Change-Id: I4558d5ed23a92d2e85c16ed3ee981f56e572ada1 Signed-off-by: Sebastian Larsson --- backends/arm/test/test_arm_backend.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/arm/test/test_arm_backend.sh b/backends/arm/test/test_arm_backend.sh index cadc59907f3..16f8b11d971 100755 --- a/backends/arm/test/test_arm_backend.sh +++ b/backends/arm/test/test_arm_backend.sh @@ -90,7 +90,8 @@ test_pytest_models_no_target() { source backends/arm/scripts/install_models_for_test.sh # Run arm baremetal pytest tests without FVP - pytest "${PYTEST_RETRY_ARGS[@]}" --verbose --color=yes --numprocesses=auto --durations=0 backends/arm/test/models -k "${EXCLUDE_TARGET_EXPR}" -m "not xlarge" + # Exit code 5 means no tests were collected; preserve all other failures. + pytest "${PYTEST_RETRY_ARGS[@]}" --verbose --color=yes --numprocesses=auto --durations=0 backends/arm/test/models -k "${EXCLUDE_TARGET_EXPR}" -m "not xlarge" || [[ $? -eq 5 ]] echo "${TEST_SUITE_NAME}: PASS" }