Skip to content

Commit

Permalink
Exclude CI platform specific failures by --excludes option
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Oct 21, 2018
1 parent 543acfa commit bf26f84
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ matrix:
- "CONFIG_FLAG='--with-opt-dir=/usr/local/opt/openssl@1.1:/usr/local/opt/zlib'"
# osx build randomly fails with -j
- "JOBS="
- "TEST_ALL_TESTOPTS=\"--color=never --job-status=replace\""
- "TEST_ALL_TESTOPTS=\"--color=never --job-status=replace\" --excludes=$(TESTSDIR)/excludes/_travis"
before_install:
# Bare "brew update" nukes everything.
# These steps are very carefully chosen to avoid breaking things.
Expand Down
3 changes: 3 additions & 0 deletions test/excludes/_travis/IMAPTest.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://travis-ci.org/ruby/ruby/jobs/444232675
# randomly raises: Errno::EPROTOTYPE "Protocol wrong type for socket"
exclude(:test_imaps_post_connection_check, 'This test randomly fails with OpenSSL 1.1.1 on Travis osx build')
4 changes: 4 additions & 0 deletions test/excludes/_travis/TestGemRemoteFetcher.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://travis-ci.org/ruby/ruby/jobs/444240249
# raises: OpenSSL::SSL::SSLError "SSL_read: tlsv1 alert decrypt error"
exclude(:test_do_not_allow_invalid_client_cert_auth_connection,
'This test is failing with OpenSSL 1.1.1 on Travis osx build')
5 changes: 0 additions & 5 deletions test/net/imap/test_imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ def test_imaps_verify_none
end

def test_imaps_post_connection_check
if ENV.key?('TRAVIS') && /darwin/ =~ RUBY_PLATFORM
# https://travis-ci.org/ruby/ruby/jobs/444232675
# randomly raises: Errno::EPROTOTYPE "Protocol wrong type for socket"
skip 'This test randomly fails with OpenSSL 1.1.1 on Travis osx build'
end
assert_raise(OpenSSL::SSL::SSLError) do
imaps_test do |port|
# server_addr is different from the hostname in the certificate,
Expand Down
5 changes: 0 additions & 5 deletions test/rubygems/test_gem_remote_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -883,11 +883,6 @@ def test_ssl_client_cert_auth_connection

def test_do_not_allow_invalid_client_cert_auth_connection
skip 'openssl is missing' unless defined?(OpenSSL::SSL)
if ENV.key?('TRAVIS') && /darwin/ =~ RUBY_PLATFORM
# https://travis-ci.org/ruby/ruby/jobs/444240249
# raises: OpenSSL::SSL::SSLError "SSL_read: tlsv1 alert decrypt error"
skip 'This test is failing with OpenSSL 1.1.1 on Travis osx build'
end

ssl_server = self.class.start_ssl_server({
:SSLVerifyClient =>
Expand Down

0 comments on commit bf26f84

Please sign in to comment.