public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Akira TAGOH <akira@tagoh.org>
To: git-commits@fedoraproject.org
Subject: [tests/fonts] rhel9: Allow - for FC_LANG to skip test
Date: Thu, 13 Aug 2026 10:29:18 GMT	[thread overview]
Message-ID: <178661695897.1.11748167781477112079.tests-fonts-f1089fb6caa9@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : tests/fonts
Branch : rhel9
Commit : f1089fb6caa9cbbf268b7d2fc480699c2fbc55e1
Author : Akira TAGOH <akira@tagoh.org>
Date   : 2024-07-08T20:23:03+09:00
Stats  : +12/-3 in 3 file(s)
URL    : https://src.fedoraproject.org/tests/fonts/c/f1089fb6caa9cbbf268b7d2fc480699c2fbc55e1?branch=rhel9

Log:
Allow - for FC_LANG to skip test

---
diff --git a/tests/default_fonts/test.sh b/tests/default_fonts/test.sh
index 6b54a68..ce024e3 100755
--- a/tests/default_fonts/test.sh
+++ b/tests/default_fonts/test.sh
@@ -22,6 +22,9 @@ function test_default_fonts {
     local defaultemoji=${7:-0}
     local defaultmath=${8:-0}
 
+    if [ "$fclang" == "-" ]; then
+        fclang="en"
+    fi
     rlPhaseStartTest "Default fonts test for $pkg"
         IFS=, read -ra langlist <<< "$fclang"
         for g in sans serif mono emoji math; do

diff --git a/tests/generic_alias/test.sh b/tests/generic_alias/test.sh
index ec79df1..b9cc12d 100755
--- a/tests/generic_alias/test.sh
+++ b/tests/generic_alias/test.sh
@@ -42,8 +42,12 @@ function test_generic_alias {
     rlPhaseStartTest "Generic alias test for $pkg"
         prepare_test $pkg
         rlRun "cat $tmpconfd/$pkg.conf"
-        rlRun "FONTCONFIG_FILE=$tmpconfd/$pkg.conf fc-match -f \"%{family[0]}\\n\" \":family=$fcfamily:lang=$fclang:width=$fcwidth\" | tee output" 0 "Matching a font"
-        rlAssertGrep "^$fcresult\$" "output"
+	if [ "$fclang" == "-" ]; then
+            rlLogInfo "$pkg:$fcfamily: Skipped."
+        else
+            rlRun "FONTCONFIG_FILE=$tmpconfd/$pkg.conf fc-match -f \"%{family[0]}\\n\" \":family=$fcfamily:lang=$fclang:width=$fcwidth\" | tee output" 0 "Matching a font"
+            rlAssertGrep "^$fcresult\$" "output"
+        fi
     rlPhaseEnd
 }
 

diff --git a/tests/lang_coverage/test.sh b/tests/lang_coverage/test.sh
index 03cbc94..70f353c 100755
--- a/tests/lang_coverage/test.sh
+++ b/tests/lang_coverage/test.sh
@@ -45,7 +45,9 @@ function test_lang_coverage {
         for f in $(get_font_path $pkg); do
             if echo $f|grep -Eq "\.(t1|ttf|otf|ttc|otc|pcf.*|pfa)$"; then
                 set -f
-                if [ $(check_exception $fcexpat $f) -ne 0 ] && [ -f $f ]; then
+                if [ "$fclang" == "-" ]; then
+                    rlLogInfo "Skipping $f (no language provided)"
+                elif [ $(check_exception $fcexpat $f) -ne 0 ] && [ -f $f ]; then
                     IFS=, read -ra langlist <<< "$fclang"
                     for l in "${langlist[@]}"; do
                         rlRun "fc-validate -l $l $f" 0 "$pkg:$(basename $f): Check language coverage for $l"

                 reply	other threads:[~2026-08-13 10:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178661695897.1.11748167781477112079.tests-fonts-f1089fb6caa9@fedoraproject.org \
    --to=akira@tagoh.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox