From 0b2e2ac261c69b23c062c98ba7aed67be86658b7 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jan 04 2018 18:26:10 +0000 Subject: tests: better %check error logging Don't run the testsuite twice now (with/without -v option), but rather /bin/cat all the testsuite.log files when 'make check' fails. Version: 1.30-1 --- diff --git a/tar.spec b/tar.spec index b76e9b8..6a4e58c 100644 --- a/tar.spec +++ b/tar.spec @@ -92,7 +92,16 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rmt.8* %check %if %{with check} rm -f $RPM_BUILD_ROOT/test/testsuite -make check || TESTSUITEFLAGS=-v make check +make check || ( + # get the error log + set +x + find -name testsuite.log | while read line; do + echo "=== $line ===" + cat "$line" + echo + done + false +) %endif %clean