Fix printing test logs when make check fails

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Anderson Toshiyuki Sasaki 2019-04-05 15:12:03 +02:00
parent a730fe5244
commit 8a92e49ae7

View File

@ -89,7 +89,7 @@ rm -f %{buildroot}%{_includedir}/*.h
rm -rf %{buildroot}%{_docdir}/libp11/
%check
make check %{?_smp_mflags}; if [ $? -ne 0 ]; then cat tests/*.log; fi;
make check %{?_smp_mflags} || if [ $? -ne 0 ]; then cat tests/*.log; exit 1; fi;
%ldconfig_scriptlets