commit:     e9efe4b6664420c395fcecbd3a07887c2e367da4
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Nov 19 02:04:25 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Nov 19 02:04:41 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9efe4b6

app-misc/jq-1.6-r3: output the testsuite log if tests fail (#675510)

Since I can't locally reproduce bug #675510, and the test suite doesn't
output the failure by default I am going to close the bug by now. If
someone can reproduce it, it should have the failures attached.

Closes: https://bugs.gentoo.org/675510
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 app-misc/jq/jq-1.6-r3.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/app-misc/jq/jq-1.6-r3.ebuild b/app-misc/jq/jq-1.6-r3.ebuild
index 65410969fe5..e233ec8fa42 100644
--- a/app-misc/jq/jq-1.6-r3.ebuild
+++ b/app-misc/jq/jq-1.6-r3.ebuild
@@ -60,6 +60,16 @@ src_configure() {
        econf "${econfargs[@]}"
 }
 
+src_test() {
+       if ! emake check; then
+               if [[ -r test-suite.log ]]; then
+                       eerror "Tests failed, outputting testsuite log"
+                       cat test-suite.log
+               fi
+               die "Tests failed"
+       fi
+}
+
 src_install() {
        local DOCS=( AUTHORS README.md )
        default

Reply via email to