public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/fonts] rhel9: validate_family: detect outdated test case
@ 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 : 9b956bbed5097a7b3395efd379e0e1d051231ff9
Author : Akira TAGOH <akira@tagoh.org>
Date : 2024-11-19T12:24:07+09:00
Stats : +10/-4 in 1 file(s)
URL : https://src.fedoraproject.org/tests/fonts/c/9b956bbed5097a7b3395efd379e0e1d051231ff9?branch=rhel9
Log:
validate_family: detect outdated test case
---
diff --git a/tests/validate_family/test.sh b/tests/validate_family/test.sh
index a8b3e7b..327ea3b 100755
--- a/tests/validate_family/test.sh
+++ b/tests/validate_family/test.sh
@@ -52,16 +52,22 @@ function test_validate_family {
set -f
if ! check_exception "$fcexpat" "$f" && [ -f "$f" ]; then
rlRun "fc-scan -f \"%{family[0]}:%{index}\\n\" $f > output" 0 "Querying family name"
- cat output | while IFS=":" read -r _FAMILY _INDEX; do
+ while IFS=":" read -r _FAMILY _INDEX; do
+ echo "$_FAMILY" > "out_${_FAMILY// /}_$_INDEX"
if [ "$indexes" = "" ] || [[ ",$indexes," = *",$_INDEX,"* ]]; then
- echo "$_FAMILY" > "out_${_FAMILY// /}_$_INDEX"
if ! rlAssertGrep "^$fcfamily\$" "out_${_FAMILY// /}_$_INDEX"; then
rlLogInfo " Primary family name \"$_FAMILY\" in $f, index $_INDEX"
fi
else
- rlLogInfo "Skipping $f index $_INDEX (according to FONT_VALIDATE_INDEXES)"
+ if grep -E "^$fcfamily\$" "out_${_FAMILY// /}_$_INDEX"; then
+ rlFail "Detected matching family \"$_FAMILY\" in $f, index $_INDEX (out of FONT_VALIDATE_INDEXES)"
+ rlLogInfo " Hints:"
+ rlLogInfo " Upstream may have some changes in a font and test case is out of date."
+ else
+ rlLogInfo "Skipping $f index $_INDEX (according to FONT_VALIDATE_INDEXES)"
+ fi
fi
- done
+ done < output
else
rlLogInfo "Skipping $f (according to FONT_VALIDATE_EXCLUDE_FILES)"
fi
^ 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: validate_family: detect outdated test case Akira TAGOH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox