From 5398bbcbab702907430ee019d07f5dcf2b0ce4af Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 10 Nov 2023 08:29:55 +0900 Subject: Tests of irb is still broken. Revert "[ruby/irb] Revert "Skip TypeCompletion test in ruby ci" This reverts commit 589e2b6782f17d5a1d55021c0395d5d73224e9da. --- test/irb/test_context.rb | 1 + test/irb/type_completion/test_scope.rb | 2 ++ test/irb/type_completion/test_type_analyze.rb | 2 ++ test/irb/type_completion/test_type_completor.rb | 2 ++ test/irb/type_completion/test_types.rb | 2 ++ 5 files changed, 9 insertions(+) diff --git a/test/irb/test_context.rb b/test/irb/test_context.rb index ce57df6cdb..f30ff36d4b 100644 --- a/test/irb/test_context.rb +++ b/test/irb/test_context.rb @@ -653,6 +653,7 @@ module TestIRB end def test_build_completor + pend 'set ENV["WITH_TYPE_COMPLETION_TEST"] to run this test' unless ENV['WITH_TYPE_COMPLETION_TEST'] verbose, $VERBOSE = $VERBOSE, nil original_completor = IRB.conf[:COMPLETOR] IRB.conf[:COMPLETOR] = :regexp diff --git a/test/irb/type_completion/test_scope.rb b/test/irb/type_completion/test_scope.rb index d7f9540b06..4eb0194785 100644 --- a/test/irb/type_completion/test_scope.rb +++ b/test/irb/type_completion/test_scope.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +return unless ENV['WITH_TYPE_COMPLETION_TEST'] + return unless RUBY_VERSION >= '3.0.0' return if RUBY_ENGINE == 'truffleruby' # needs endless method definition diff --git a/test/irb/type_completion/test_type_analyze.rb b/test/irb/type_completion/test_type_analyze.rb index c417a8ad12..1c1ea94c29 100644 --- a/test/irb/type_completion/test_type_analyze.rb +++ b/test/irb/type_completion/test_type_analyze.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +return unless ENV['WITH_TYPE_COMPLETION_TEST'] + # Run test only when Ruby >= 3.0 and %w[prism rbs] are available return unless RUBY_VERSION >= '3.0.0' return if RUBY_ENGINE == 'truffleruby' # needs endless method definition diff --git a/test/irb/type_completion/test_type_completor.rb b/test/irb/type_completion/test_type_completor.rb index eed400b3e2..7ae1ada792 100644 --- a/test/irb/type_completion/test_type_completor.rb +++ b/test/irb/type_completion/test_type_completor.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +return unless ENV['WITH_TYPE_COMPLETION_TEST'] + # Run test only when Ruby >= 3.0 and %w[prism rbs] are available return unless RUBY_VERSION >= '3.0.0' return if RUBY_ENGINE == 'truffleruby' # needs endless method definition diff --git a/test/irb/type_completion/test_types.rb b/test/irb/type_completion/test_types.rb index 7698bd2fc0..93c58be17a 100644 --- a/test/irb/type_completion/test_types.rb +++ b/test/irb/type_completion/test_types.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +return unless ENV['WITH_TYPE_COMPLETION_TEST'] + return unless RUBY_VERSION >= '3.0.0' return if RUBY_ENGINE == 'truffleruby' # needs endless method definition -- cgit v1.2.3