summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-07-05 09:38:02 +0200
committerSam James <sam@gentoo.org>2022-07-05 09:05:33 +0100
commitcd1cd3f34139899f4de84cabcf94036bf623d395 (patch)
treeabd306d7fe8c73b752d4b805b8476a26677bede1 /media-libs/openjpeg
parentmedia-gfx/flameshot: drop 0.6.0-r1, 0.9.0-r1, 0.10.1 (diff)
downloadgentoo-cd1cd3f34139899f4de84cabcf94036bf623d395.tar.gz
gentoo-cd1cd3f34139899f4de84cabcf94036bf623d395.tar.bz2
gentoo-cd1cd3f34139899f4de84cabcf94036bf623d395.zip
media-libs/openjpeg: die properly when tests fail
Bug: https://bugs.gentoo.org/856505 Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo/pull/26228 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/openjpeg')
-rw-r--r--media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild b/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
index 706ab40270e3..8ce57b6e9469 100644
--- a/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
+++ b/media-libs/openjpeg/openjpeg-2.5.0-r2.ebuild
@@ -120,7 +120,7 @@ multilib_src_test() {
local FAILEDTEST=
local HAS_UNKNOWN_TEST_FAILURES=0
- awk -F: '{ print $2 }' "${FAILEDTEST_LOG}" | while read FAILEDTEST; do
+ while read FAILEDTEST; do
# is this failure known?
if grep -xq "${FAILEDTEST}" "${KNOWN_FAILURES_LIST}" ; then
elog "Test '${FAILEDTEST}' is known to fail, ignoring ..."
@@ -128,7 +128,7 @@ multilib_src_test() {
eerror "New/unknown test failure found: '${FAILEDTEST}'"
HAS_UNKNOWN_TEST_FAILURES=1
fi
- done
+ done < <(awk -F: '{ print $2 }' "${FAILEDTEST_LOG}")
[[ ${HAS_UNKNOWN_TEST_FAILURES} -eq 0 ]] || die "Test suite failed. New/unknown test failure(s) found!"