зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Fix some intermittent test failures on truffleruby
Since they changed their default to not generate documentation on `gem install`, we're getting some intermittent test failures. Can be reproduced with: ``` TRUFFLERUBYOPT="--experimental-options --testing-rubygems" TESTOPTS=--name="/^\(?:TestGemGemRunner#\(?:test_list_succeeds\)\|TestGemCommandsUpdateCommand#\(?:test_handle_options_system\)\)$/ --seed=54277 --verbose" rake ``` Fix it by resetting all permanent CLI options when CLI runner loads configuration. https://github.com/rubygems/rubygems/commit/7d896f4b74
This commit is contained in:
Родитель
a9b044e97b
Коммит
e6be06e4ef
|
@ -8,6 +8,7 @@ class TestGemGemRunner < Gem::TestCase
|
|||
require 'rubygems/command'
|
||||
@orig_args = Gem::Command.build_args
|
||||
@orig_specific_extra_args = Gem::Command.specific_extra_args_hash.dup
|
||||
@orig_extra_args = Gem::Command.extra_args.dup
|
||||
|
||||
require 'rubygems/gem_runner'
|
||||
@runner = Gem::GemRunner.new
|
||||
|
@ -18,6 +19,7 @@ class TestGemGemRunner < Gem::TestCase
|
|||
|
||||
Gem::Command.build_args = @orig_args
|
||||
Gem::Command.specific_extra_args_hash = @orig_specific_extra_args
|
||||
Gem::Command.extra_args = @orig_extra_args
|
||||
end
|
||||
|
||||
def test_do_configuration
|
||||
|
|
Загрузка…
Ссылка в новой задаче