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. Related: rhbz#2051083 Signed-off-by: Clemens Lang <cllang@redhat.com>
This commit is contained in:
parent
eca3c22e53
commit
b9ef8012c2
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-3
|
* Fri Feb 04 2022 Clemens Lang <cllang@redhat.com> - 5.62-3
|
||||||
- Fix stunnel in FIPS mode (with upcoming OpenSSL changes)
|
- Fix stunnel in FIPS mode (with upcoming OpenSSL changes)
|
||||||
Related: rhbz#2050617
|
Related: rhbz#2050617
|
||||||
|
- Fail build if tests fail
|
||||||
|
Related: rhbz#2051083
|
||||||
|
|
||||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.62-2
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.62-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user