From 6d84c90c8e32659d3b25fd352126889f33d66f1d Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 10 Oct 2025 14:45:49 +1100 Subject: test: For missing static checkers, skip rather than failing tests We run a bunch of static checkers as part of our testsuite. That's useful, but it means that if a user doesn't have one of them installed, it fails the entire testsuite. Alter our scripts to skip the test, rather than failing outright if the checker tool is not installed. This requires exeter v0.4.4 or later. Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- test/lib/exeter | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test/lib') diff --git a/test/lib/exeter b/test/lib/exeter index 7ea084a..ccdb19c 100644 --- a/test/lib/exeter +++ b/test/lib/exeter @@ -49,7 +49,15 @@ exeter() { for __testid in $(${EXETOOL} list -- "${@}"); do __desc="$(${EXETOOL} desc -- "${@}" -- "${__testid}")" status_test_start "${__desc}" - context_run host "${*} '${__testid}'" && status_test_ok || status_test_fail + status=0 + context_run host "${*} '${__testid}'" || status="${?}" + if [ "${status}" = 0 ]; then + status_test_ok + elif [ "${status}" = 77 ]; then + status_test_skip + else + status_test_fail + fi done cd .. -- cgit v1.2.3