From 8a92e49ae776a7e031206f42cd824f3dcfd87866 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Fri, 5 Apr 2019 15:12:03 +0200 Subject: [PATCH] Fix printing test logs when make check fails Signed-off-by: Anderson Toshiyuki Sasaki --- openssl-pkcs11.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssl-pkcs11.spec b/openssl-pkcs11.spec index 64b34ad..9506786 100644 --- a/openssl-pkcs11.spec +++ b/openssl-pkcs11.spec @@ -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