From e9efe4b6664420c395fcecbd3a07887c2e367da4 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Mon, 18 Nov 2019 18:04:25 -0800 Subject: [PATCH] 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 --- 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 65410969fe53..e233ec8fa42e 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 -- 2.26.2