[automake] spec: tune %check to show testsuite.log when failed

Pavel Raiskup praiskup at fedoraproject.org
Thu Apr 4 12:04:59 UTC 2013


commit b52bbc7bdc519232b5e0b0a31933d2ce8911e19f
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Thu Apr 4 13:22:24 2013 +0200

    spec: tune %check to show testsuite.log when failed
    
    Version: 1.13.1-15

 automake.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/automake.spec b/automake.spec
index c7d784a..158d153 100644
--- a/automake.spec
+++ b/automake.spec
@@ -3,7 +3,7 @@
 Summary:    A GNU tool for automatically creating Makefiles
 Name:       automake
 Version:    %{api_version}.1
-Release:    14%{?dist}
+Release:    15%{?dist}
 
 # docs ~> GFDL, sources ~> GPLv2+, mkinstalldirs ~> PD and install-sh ~> MIT
 License:    GPLv2+ and GFDL and Public Domain and MIT
@@ -87,7 +87,7 @@ make install DESTDIR=%{buildroot}
 
 %check
 %if %{with check}
-make -k %{?_smp_mflags} check
+make -k %{?_smp_mflags} check || cat ./test-suite.log && false
 %endif
 
 %post
@@ -109,6 +109,9 @@ fi
 %{_mandir}/man1/*
 
 %changelog
+* Thu Apr 04 2013 Pavel Raiskup <praiskup at redhat.com> - 1.13.1-15
+- tune %%check to show testsuite.log when failed
+
 * Tue Apr 02 2013 Pavel Raiskup <praiskup at redhat.com> - 1.13.1-14
 - fix another requirement on perl package which may cause problems in future,
   thanks to Paul Howarth (#924938)


More information about the scm-commits mailing list