public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/fonts] rhel9: Allow - for FC_LANG to skip test
@ 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 : 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"
^ 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: Allow - for FC_LANG to skip test Akira TAGOH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox