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: validate_family: detect outdated test case
Date: Thu, 13 Aug 2026 10:29:29 GMT [thread overview]
Message-ID: <178661696989.1.3788039091016589707.tests-fonts-9b956bbed509@fedoraproject.org> (raw)
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
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=178661696989.1.3788039091016589707.tests-fonts-9b956bbed509@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