feat: add show_test_result() to output iso checks consistently

This commit is contained in:
Martin Wimpress 2024-04-28 13:32:28 +01:00
parent a84454068f
commit 5520c18df0
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 16 additions and 0 deletions

View File

@ -393,6 +393,22 @@ function list_supported() {
exit 0
}
function show_test_result() {
local RESULT="${1}"
local OS="${2}"
local RELEASE="${3}"
local EDITION="${4:-}"
local URL="${5:-}"
if [ -n "${EDITION}" ]; then
OS="${OS}-${RELEASE}-${EDITION}"
else
OS="${OS}-${RELEASE}"
fi
# Pad the OS string to 32 characters
OS=$(printf "%-35s" "${OS}")
echo -e "${RESULT}: ${OS} ${URL}"
}
function list_url_all() {
OS="${1}"
os_supported