Skip to content

Commit 6bc94d0

Browse files
committed
media-gfx/imageworsener: add patch to respect tests exit code
See: jsummers/imageworsener#47 See: jsummers/imageworsener#46 Bug: https://bugs.gentoo.org/916906 Signed-off-by: Matoro Mahri <[email protected]>
1 parent 1ae87d3 commit 6bc94d0

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
https://bugs.gentoo.org/916906
2+
https://github.com/jsummers/imageworsener/issues/47
3+
https://github.com/jsummers/imageworsener/pull/46
4+
5+
From 91c7c79d86f55920193d17a7b87631b14ac7779f Mon Sep 17 00:00:00 2001
6+
From: matoro <[email protected]>
7+
Date: Mon, 15 Jan 2024 22:26:45 -0500
8+
Subject: [PATCH] Pass diff exit code up to shell for test suite
9+
10+
Right now, test failures are not getting detected because the runtests
11+
script does not pass up a failing exit code from diff.
12+
---
13+
tests/runtest | 1 +
14+
1 file changed, 1 insertion(+)
15+
16+
diff --git a/tests/runtest b/tests/runtest
17+
index 6db7b6c..3f534dc 100755
18+
--- a/tests/runtest
19+
+++ b/tests/runtest
20+
@@ -334,3 +334,4 @@ then
21+
echo "All tests passed."
22+
fi
23+
24+
+exit $RET

media-gfx/imageworsener/imageworsener-1.3.5.ebuild

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ RDEPEND="${DEPEND}"
2424
REQUIRED_USE="test? ( jpeg png webp zlib )"
2525
RESTRICT="!test? ( test )"
2626

27+
PATCHES=( "${FILESDIR}/${PN}-1.3.5-backport-pr46.patch" )
28+
2729
src_configure() {
2830
local switch=''
2931
use test && switch=test
@@ -44,5 +46,5 @@ src_install() {
4446

4547
src_test() {
4648
cd "${S}"/tests || die
47-
./runtest "${S}"/${MY_PN}
49+
./runtest "${S}"/${MY_PN} || die
4850
}

0 commit comments

Comments
 (0)