public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/fonts] rhel9: Fix improper hint for system-ui
@ 2026-08-13 10:29 Akira TAGOH
  0 siblings, 0 replies; only message in thread
From: Akira TAGOH @ 2026-08-13 10:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : tests/fonts
Branch : rhel9
Commit : 254c77d0047077eae90967b5091d64722d428ac4
Author : Akira TAGOH <akira@tagoh.org>
Date   : 2025-11-26T12:48:01+09:00
Stats  : +3/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/tests/fonts/c/254c77d0047077eae90967b5091d64722d428ac4?branch=rhel9

Log:
Fix improper hint for system-ui

---
diff --git a/tests/default_fonts/test.sh b/tests/default_fonts/test.sh
index 811209b..7d164ce 100755
--- a/tests/default_fonts/test.sh
+++ b/tests/default_fonts/test.sh
@@ -42,6 +42,7 @@ function test_default_fonts {
         IFS=, read -ra langlist <<< "$fclang"
         for g in sans serif mono emoji math system-ui; do
             for l in "${langlist[@]}"; do
+                declare -u G=${g//-/}
                 v="default${g//-/}"
                 rlRun "fc-match -f \"%{family[0]}\\n\" \":family=$g:lang=${l/und*/en}\" | tee output" 0 "Checking $g default font for lang ${l/und*/en}"
                 if [ "${!v}" -eq 1 ]; then
@@ -50,14 +51,14 @@ function test_default_fonts {
                         rlLogInfo "      This failed because of:"
                         rlLogInfo "        1) The actual result of font may have higher priority."
                         rlLogInfo "        2) fontconfig file may be missing the generic alias rule for $g"
-                        rlLogInfo "        3) The value of DEFAULT_${g^^} may be wrong."
+                        rlLogInfo "        3) The value of DEFAULT_${G} may be wrong."
                     fi
                 elif [ "${!v}" -eq 0 ]; then
                     if ! rlAssertNotGrep "^$fcfamily\$" "output"; then
                         rlLogInfo "    Hints:"
                         rlLogInfo "      This failed because of:"
                         rlLogInfo "        1) The actual result of font may have higher priority."
-                        rlLogInfo "        2) There are no default font for $g -> Consider adding DEFAULT_${g^^} with 2 tentatively"
+                        rlLogInfo "        2) There are no default font for $g -> Consider adding DEFAULT_${G} with 2 tentatively"
                     fi
                 else
                     rlLogWarning "Ignoring result, which means it isn't yet determined."

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-13 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13 10:29 [tests/fonts] rhel9: Fix improper hint for system-ui Akira TAGOH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox