1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/rubygems
David Rodríguez d9dd88a686 [rubygems/rubygems] Avoid crash in test teardown
If an exception happens during test `setup` method, the `teardown`
method will still be run for cleaning up, but if some other errors
occurs then, it will hide the original error.

This is happening sometimes in CI where restoring original gem hooks is
failing because the error in `setup` happened before the variable
holding the original hooks was initialized.

This commit moves initialization of `@orig_hooks` to the beginning of
the `setup` method to avoid this issue.

https://github.com/rubygems/rubygems/commit/8524d2b74d
2022-03-24 07:34:29 +09:00
..
data
fake_certlib
foo
package
packages
plugin
rubygems/commands
sff
specifications
alternate_cert.pem
alternate_cert_32.pem
alternate_key.pem
bad_rake.rb
ca_cert.pem
child_cert.pem
child_cert_32.pem
child_key.pem
client.pem
encrypted_private_key.pem Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
expired_cert.pem
future_cert.pem
future_cert_32.pem
good_rake.rb
grandchild_cert.pem
grandchild_cert_32.pem
grandchild_key.pem
helper.rb [rubygems/rubygems] Avoid crash in test teardown 2022-03-24 07:34:29 +09:00
installer_test_case.rb
invalid_client.pem
invalid_issuer_cert.pem
invalid_issuer_cert_32.pem
invalid_key.pem
invalid_signer_cert.pem
invalid_signer_cert_32.pem
invalidchild_cert.pem
invalidchild_cert_32.pem
invalidchild_key.pem
private3072_key.pem
private_ec_key.pem
private_key.pem
public3072_cert.pem
public_cert.pem
public_cert_32.pem
public_key.pem
rubygems_plugin.rb
simple_gem.rb
ssl_cert.pem
ssl_key.pem
test_bundled_ca.rb
test_config.rb
test_deprecate.rb
test_exit.rb
test_gem.rb [rubygems/rubygems] Privatize some test utils 2022-01-15 00:00:09 +09:00
test_gem_available_set.rb
test_gem_bundler_version_finder.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
test_gem_command.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
test_gem_command_manager.rb [rubygems/rubygems] Don't pass regexp to Gem::Dependeny.new from list, search, and query commands 2022-01-19 15:56:35 +09:00
test_gem_commands_build_command.rb
test_gem_commands_cert_command.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
test_gem_commands_check_command.rb
test_gem_commands_cleanup_command.rb
test_gem_commands_contents_command.rb
test_gem_commands_dependency_command.rb
test_gem_commands_environment_command.rb
test_gem_commands_fetch_command.rb [rubygems/rubygems] Fix suggestions flag 2022-01-06 23:58:39 +09:00
test_gem_commands_generate_index_command.rb
test_gem_commands_help_command.rb
test_gem_commands_info_command.rb
test_gem_commands_install_command.rb [rubygems/rubygems] Fix gem install <non-existent-gem> --force crash 2022-01-06 23:52:48 +09:00
test_gem_commands_list_command.rb
test_gem_commands_lock_command.rb
test_gem_commands_mirror.rb
test_gem_commands_open_command.rb [rubygems/rubygems] Don't load system rubygems during tests 2021-12-09 08:58:25 +09:00
test_gem_commands_outdated_command.rb
test_gem_commands_owner_command.rb
test_gem_commands_pristine_command.rb
test_gem_commands_push_command.rb
test_gem_commands_query_command.rb
test_gem_commands_search_command.rb
test_gem_commands_server_command.rb Removed the related code of gem server 2021-11-02 10:19:34 +09:00
test_gem_commands_setup_command.rb [rubygems/rubygems] Resolve cleaned-up error with temporary gemhome 2022-02-22 13:32:59 +09:00
test_gem_commands_signin_command.rb [rubygems/rubygems] Fix typos 2021-11-04 23:06:25 +09:00
test_gem_commands_signout_command.rb
test_gem_commands_sources_command.rb
test_gem_commands_specification_command.rb
test_gem_commands_stale_command.rb
test_gem_commands_uninstall_command.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
test_gem_commands_unpack_command.rb
test_gem_commands_update_command.rb [rubygems/rubygems] Fix gem update --system for already installed version of rubygems-update 2022-01-15 14:00:35 +09:00
test_gem_commands_which_command.rb
test_gem_commands_yank_command.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
test_gem_config_file.rb
test_gem_dependency.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
test_gem_dependency_installer.rb
test_gem_dependency_list.rb
test_gem_dependency_resolution_error.rb
test_gem_doctor.rb
test_gem_ext_builder.rb
test_gem_ext_cmake_builder.rb
test_gem_ext_configure_builder.rb
test_gem_ext_ext_conf_builder.rb [rubygems/rubygems] Fix assert_contains_make_command on make defined by environment variable. 2021-11-09 21:21:34 +09:00
test_gem_ext_rake_builder.rb
test_gem_gem_runner.rb
test_gem_gemcutter_utilities.rb
test_gem_impossible_dependencies_error.rb
test_gem_indexer.rb
test_gem_install_update_options.rb Merge the master branch of rubygems repo 2021-11-16 20:19:13 +09:00
test_gem_installer.rb [rubygems/rubygems] Support binstubs with --enable-load-relative prolog 2022-01-15 00:00:11 +09:00
test_gem_local_remote_options.rb
test_gem_name_tuple.rb
test_gem_package.rb Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
test_gem_package_old.rb
test_gem_package_tar_header.rb
test_gem_package_tar_reader.rb
test_gem_package_tar_reader_entry.rb
test_gem_package_tar_writer.rb
test_gem_package_task.rb
test_gem_path_support.rb
test_gem_platform.rb
test_gem_rdoc.rb
test_gem_remote_fetcher.rb [rubygems/rubygems] Pass :bimode explicitly to File.open 2021-12-15 19:46:44 +09:00
test_gem_request.rb [rubygems/rubygems] Use OpenSSL constants for error codes. 2021-11-02 19:12:35 +09:00
test_gem_request_connection_pools.rb
test_gem_request_set.rb
test_gem_request_set_gem_dependency_api.rb
test_gem_request_set_lockfile.rb
test_gem_request_set_lockfile_parser.rb
test_gem_request_set_lockfile_tokenizer.rb
test_gem_requirement.rb
test_gem_resolver.rb [rubygems/rubygems] Fix typos 2021-11-04 23:06:25 +09:00
test_gem_resolver_activation_request.rb
test_gem_resolver_api_set.rb
test_gem_resolver_api_specification.rb
test_gem_resolver_best_set.rb
test_gem_resolver_composed_set.rb
test_gem_resolver_conflict.rb
test_gem_resolver_dependency_request.rb
test_gem_resolver_git_set.rb
test_gem_resolver_git_specification.rb
test_gem_resolver_index_set.rb
test_gem_resolver_index_specification.rb
test_gem_resolver_installed_specification.rb
test_gem_resolver_installer_set.rb
test_gem_resolver_local_specification.rb
test_gem_resolver_lock_set.rb
test_gem_resolver_lock_specification.rb
test_gem_resolver_requirement_list.rb
test_gem_resolver_specification.rb
test_gem_resolver_vendor_set.rb
test_gem_resolver_vendor_specification.rb
test_gem_security.rb [rubygems/rubygems] Provide distinguished name which will be correctly parsed. 2021-12-02 04:43:06 +09:00
test_gem_security_policy.rb
test_gem_security_signer.rb
test_gem_security_trust_dir.rb
test_gem_silent_ui.rb
test_gem_source.rb
test_gem_source_fetch_problem.rb
test_gem_source_git.rb
test_gem_source_installed.rb
test_gem_source_list.rb
test_gem_source_local.rb
test_gem_source_lock.rb
test_gem_source_specific_file.rb
test_gem_source_subpath_problem.rb
test_gem_source_vendor.rb
test_gem_spec_fetcher.rb
test_gem_specification.rb [rubygems/rubygems] Skip find_in_unresolved_tree test for TruffleRuby due to longer runtime 2021-12-21 04:57:23 +09:00
test_gem_stream_ui.rb [rubygems/rubygems] Remove redundant condition 2022-01-14 23:38:09 +09:00
test_gem_stub_specification.rb [rubygems/rubygems] Fix race conditon on JRuby 2022-01-05 07:25:45 +09:00
test_gem_text.rb
test_gem_uninstaller.rb
test_gem_unsatisfiable_dependency_error.rb
test_gem_uri.rb
test_gem_uri_formatter.rb
test_gem_util.rb
test_gem_validator.rb
test_gem_version.rb [rubygems/rubygems] Let Version#spaceship accept a String 2022-01-13 18:15:14 +09:00
test_gem_version_option.rb
test_kernel.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
test_project_sanity.rb Merge RubyGems and Bundler master 2021-12-15 18:05:18 +09:00
test_remote_fetch_error.rb
test_require.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
test_rubygems.rb Restore workaround for test_rubygems.rb, It still fails with chkbuild encironment 2022-02-01 12:21:53 +09:00
utilities.rb [rubygems/rubygems] Normalize end alignment style with Bundler 2022-01-19 11:20:36 +09:00
wrong_key_cert.pem
wrong_key_cert_32.pem