[packages/postgresql] Print more info on failures
arekm
arekm at pld-linux.org
Wed Aug 12 21:52:32 CEST 2026
commit 3103797d0a0c724596341addded17691f6181b51
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Aug 12 21:52:15 2026 +0200
Print more info on failures
postgresql.spec | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/postgresql.spec b/postgresql.spec
index f674cfa..c1dd166 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -883,7 +883,18 @@ done
%{__make} -C doc/src/sgml
%ifnarch sparc sparcv9 sparc64 alpha
-%{?with_tests:%{__make} -j1 check}
+%if %{with tests}
+# builder wipes the build tree, so failure details must reach the log itself
+%{__make} -j1 check || {
+ echo "*** regression.diffs ***"
+ find src/test contrib -name regression.diffs -print -exec cat {} \;
+ echo "*** initdb.log ***"
+ find src/test contrib -name initdb.log -print -exec cat {} \;
+ echo "*** postmaster.log (last 200 lines each) ***"
+ find src/test contrib -name postmaster.log -print -exec tail -n 200 {} \;
+ exit 1;
+}
+%endif
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/3103797d0a0c724596341addded17691f6181b51
More information about the pld-cvs-commit
mailing list