mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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:
parent
a9b044e97b
commit
e6be06e4ef
Notes:
git
2020-07-31 21:08:09 +09:00
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue