Disable tests as openssl gem is not ready yet.
Related: rhbz#1952925
This commit is contained in:
parent
c3918ba053
commit
3594007a82
19
ruby.spec
19
ruby.spec
@ -66,6 +66,9 @@
|
|||||||
|
|
||||||
%global tapset_libdir %(echo %{_libdir} | sed 's/64//')*
|
%global tapset_libdir %(echo %{_libdir} | sed 's/64//')*
|
||||||
|
|
||||||
|
# Temporarily disable tests failing with OpenSSL 3.0
|
||||||
|
%bcond_with openssl_tests
|
||||||
|
|
||||||
%if 0%{?fedora} >= 19
|
%if 0%{?fedora} >= 19
|
||||||
%bcond_without rubypick
|
%bcond_without rubypick
|
||||||
%endif
|
%endif
|
||||||
@ -876,6 +879,22 @@ make runruby TESTRUN_SCRIPT="--enable-gems %{SOURCE13}"
|
|||||||
# Check if systemtap is supported.
|
# Check if systemtap is supported.
|
||||||
%{?with_systemtap:make runruby TESTRUN_SCRIPT=%{SOURCE14}}
|
%{?with_systemtap:make runruby TESTRUN_SCRIPT=%{SOURCE14}}
|
||||||
|
|
||||||
|
|
||||||
|
# Temporarily disable tests, as openssl gem is not ready yet
|
||||||
|
# Therefore I'm disabling all the affected tests bellow.
|
||||||
|
# https://github.com/ruby/openssl/pull/399
|
||||||
|
%if %{without openssl_tests}
|
||||||
|
# Loading SSL Certificate fails (Segfault).
|
||||||
|
sed -i '/^ if defined?(OpenSSL::SSL/,/^ end/ s/^/#/g' \
|
||||||
|
tool/test/webrick/test_httpproxy.rb
|
||||||
|
sed -i "/^\s*def test_upstream_proxy$/ a \
|
||||||
|
skip 'Fails to load cert with openssl 3.0.'" tool/test/webrick/test_httpproxy.rb
|
||||||
|
sed -i "/^\s*def test_connect$/ a \
|
||||||
|
skip 'Fails to load cert with o penssl 3.0.'" tool/test/webrick/test_httpproxy.rb
|
||||||
|
mv test/net/http/test_https.rb{,.disable}
|
||||||
|
mv test/openssl/utils.rb{,.disable}
|
||||||
|
%endif
|
||||||
|
|
||||||
DISABLE_TESTS=""
|
DISABLE_TESTS=""
|
||||||
MSPECOPTS=""
|
MSPECOPTS=""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user