public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/fonts] rhel9: lang_coverage: use rlAssertRpm instead of own 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 : a72c673d2f82319a30a1eb83153fc9e8a1d10068
Author : Akira TAGOH <akira@tagoh.org>
Date : 2024-11-15T17:17:37+09:00
Stats : +13/-4 in 1 file(s)
URL : https://src.fedoraproject.org/tests/fonts/c/a72c673d2f82319a30a1eb83153fc9e8a1d10068?branch=rhel9
Log:
lang_coverage: use rlAssertRpm instead of own test case
---
diff --git a/tests/lang_coverage/test.sh b/tests/lang_coverage/test.sh
index 70f353c..447b935 100755
--- a/tests/lang_coverage/test.sh
+++ b/tests/lang_coverage/test.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+# -*- tab-width: 4, indent-tabs-mode: nil -*-
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
@@ -29,8 +30,10 @@ function check_exception {
function test_pkg {
local pkg=$1
- rlPhaseStartTest "Package installation test for $pkg" #{
- rlRun "rpm -q $pkg" 0 "Package installation test" #}
+ rlPhaseStartTest "Package installation test for $pkg"
+ {
+ rlAssertRpm $pkg
+ }
rlPhaseEnd
}
@@ -42,6 +45,7 @@ function test_lang_coverage {
test_pkg $pkg
rlPhaseStartTest "Language coverage test for $pkg"
+ {
for f in $(get_font_path $pkg); do
if echo $f|grep -Eq "\.(t1|ttf|otf|ttc|otc|pcf.*|pfa)$"; then
set -f
@@ -60,15 +64,18 @@ function test_lang_coverage {
rlLogInfo "Skipping $f (non-font file)"
fi
done
+ }
rlPhaseEnd
}
rlJournalStart
-
+{
rlPhaseStartSetup
+ {
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
+ }
rlPhaseEnd
if [ -n "$VARLIST" ] && [ -f "$TMT_TREE/plans/$VARLIST" ]; then
@@ -81,8 +88,10 @@ rlJournalStart
fi
rlPhaseStartCleanup
+ {
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
+ }
rlPhaseEnd
-
+}
rlJournalEnd
^ 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: lang_coverage: use rlAssertRpm instead of own 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