Fail build if tests fail
The || section after make test replaced the return value of the entire statement with 0. This hides error in test execution. Resolves: rhbz#2051083 Signed-off-by: Clemens Lang <cllang@redhat.com>
This commit is contained in:
parent
ecdba103e6
commit
c97482468c
10
stunnel.spec
10
stunnel.spec
@ -100,7 +100,13 @@ cp %{SOURCE7} %{buildroot}%{_unitdir}/%{name}@.service
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test || (for i in tests/logs/*.log ; do echo "$i": ; cat "$i" ; done)
|
if ! make test; then
|
||||||
|
for i in tests/logs/*.log; do
|
||||||
|
echo "$i":
|
||||||
|
cat "$i"
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
%{!?_licensedir:%global license %%doc}
|
||||||
@ -139,6 +145,8 @@ make test || (for i in tests/logs/*.log ; do echo "$i": ; cat "$i" ; done)
|
|||||||
* Fri Feb 04 2022 Clemens Lang <cllang@redhat.com> - 5.62-2
|
* Fri Feb 04 2022 Clemens Lang <cllang@redhat.com> - 5.62-2
|
||||||
- Fix stunnel in FIPS mode
|
- Fix stunnel in FIPS mode
|
||||||
Resolves: rhbz#2050617
|
Resolves: rhbz#2050617
|
||||||
|
- Fail build if tests fail
|
||||||
|
Resolves: rhbz#2051083
|
||||||
|
|
||||||
* Tue Jan 18 2022 Clemens Lang <cllang@redhat.com> - 5.62-1
|
* Tue Jan 18 2022 Clemens Lang <cllang@redhat.com> - 5.62-1
|
||||||
- New upstream release 5.62
|
- New upstream release 5.62
|
||||||
|
Loading…
Reference in New Issue
Block a user