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
Yusuke Endoh e30ff63fd4 test/rubygems/test_gem_package.rb: Skip a test when TMPDIR is too long
to suppress the following failure:

https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20200617T130007Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/android29-x86_64/ruby-master/log/20200617T131443Z.fail.html.gz
```
1) Failure:
TestGemPackage#test_extract_symlink_parent_doesnt_delete_user_dir
[/export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/test/rubygems/test_gem_package.rb:620]:
--- expected
+++ actual
@@ -1 +1 @@
-"installing into parent path /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/user/dir of /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/subdir is not allowed"
+"installing into parent path link/dir of /export/home/chkbuild/chkbuild-gcc/tmp/build/20200617T130007Z/ruby/tmp/test_rubygems_15916/extract/subdir is not allowed"
```

These CI environments use very long TMPDIR for some reason.
The test case creates a directory in TMPDIR and attempts to add a
symbolic link to the path into a tarball.  However, tar format limits
the maximum length up to 99, so the path is truncated.
This truncation makes the path check of `Gem::Package#install_location`
pass through, and then the check of `#mkdir_p_safe` raises an error.
The error message is slightly different from the expected value, so the
test fails.

I'm unsure what to do, so I tentatively skip the test when TMPDIR is
long.  I'll create a ticket into rubygems bug tracker.
2020-06-17 23:28:51 +09:00
..
data
fake_certlib
foo
plugin
rubygems/commands
sff
specifications Remove encoding magic comments 2020-06-15 21:20:37 +09:00
alternate_cert.pem
alternate_cert_32.pem
alternate_key.pem
bad_rake.rb
bogussources.rb
ca_cert.pem
child_cert.pem
child_cert_32.pem
child_key.pem
client.pem
encrypted_private_key.pem
expired_cert.pem
future_cert.pem
future_cert_32.pem
good_rake.rb
grandchild_cert.pem
grandchild_cert_32.pem
grandchild_key.pem
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_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 [rubygems/rubygems] Remove minitest compatibility code 2020-05-08 07:38:50 +09:00
test_config.rb
test_deprecate.rb [rubygems/rubygems] Revert deprecation of deprecate method for now. 2020-05-08 07:38:50 +09:00
test_gem.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_available_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_bundler_version_finder.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_command_manager.rb [rubygems/rubygems] Rename version horizon deprecation methods 2020-05-08 07:38:50 +09:00
test_gem_commands_build_command.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_commands_cert_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_commands_check_command.rb
test_gem_commands_cleanup_command.rb
test_gem_commands_contents_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_commands_dependency_command.rb
test_gem_commands_environment_command.rb
test_gem_commands_fetch_command.rb
test_gem_commands_generate_index_command.rb Remove builder gem requirement for gem regenerate_index 2020-05-08 14:13:29 +09:00
test_gem_commands_help_command.rb
test_gem_commands_info_command.rb
test_gem_commands_install_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +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] Use newer module Minitest name 2020-05-08 07:38:50 +09:00
test_gem_commands_outdated_command.rb
test_gem_commands_owner_command.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_commands_pristine_command.rb
test_gem_commands_push_command.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_commands_query_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_commands_search_command.rb
test_gem_commands_server_command.rb
test_gem_commands_setup_command.rb Speed up setup test by not installing docs 2020-06-17 21:16:56 +09:00
test_gem_commands_signin_command.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_commands_signout_command.rb Revert "Revert "[rubygems/rubygems] Remove unneeded teardown"" 2020-06-15 19:48:25 +09:00
test_gem_commands_sources_command.rb
test_gem_commands_specification_command.rb
test_gem_commands_stale_command.rb
test_gem_commands_uninstall_command.rb [rubygems/rubygems] Fix incorrect gem uninstall --all message 2020-05-08 14:13:29 +09:00
test_gem_commands_unpack_command.rb
test_gem_commands_update_command.rb Exit with non-zero status on disabled gem system update. 2020-06-15 21:20:37 +09:00
test_gem_commands_which_command.rb
test_gem_commands_yank_command.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_config_file.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_dependency.rb
test_gem_dependency_installer.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_dependency_list.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_dependency_resolution_error.rb
test_gem_doctor.rb
test_gem_ext_builder.rb [rubygems/rubygems] Relax test to still check we're calling the expected Ruby 2020-06-05 07:32:42 +09:00
test_gem_ext_cmake_builder.rb Run rb_syswait on exec failure 2020-05-10 00:59:55 -07:00
test_gem_ext_configure_builder.rb [rubygems/rubygems] These specs seem to work just fine on jruby 2020-05-08 07:38:50 +09:00
test_gem_ext_ext_conf_builder.rb Remove encoding magic comments 2020-06-15 21:20:37 +09:00
test_gem_ext_rake_builder.rb [rubygems/rubygems] Remove unnecessary @@ruby variable 2020-05-08 14:13:29 +09:00
test_gem_gem_runner.rb [rubygems/rubygems] Avoid "ambiguous first argument" warning 2020-05-08 07:38:50 +09:00
test_gem_gemcutter_utilities.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_impossible_dependencies_error.rb
test_gem_indexer.rb Remove builder gem requirement for gem regenerate_index 2020-05-08 14:13:29 +09:00
test_gem_install_update_options.rb
test_gem_installer.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_local_remote_options.rb
test_gem_name_tuple.rb
test_gem_package.rb test/rubygems/test_gem_package.rb: Skip a test when TMPDIR is too long 2020-06-17 23:28:51 +09:00
test_gem_package_old.rb
test_gem_package_tar_header.rb [rubygems/rubygems] Allow spaces in file headers during octal check 2020-05-08 14:13:29 +09:00
test_gem_package_tar_reader.rb
test_gem_package_tar_reader_entry.rb
test_gem_package_tar_writer.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_package_task.rb Skip test_gem_package_task if rake not present 2020-06-17 21:16:56 +09:00
test_gem_path_support.rb
test_gem_platform.rb
test_gem_rdoc.rb
test_gem_remote_fetcher.rb Simplify handling of a LoadError 2020-06-17 21:16:56 +09:00
test_gem_request.rb
test_gem_request_connection_pools.rb
test_gem_request_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_request_set_gem_dependency_api.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_request_set_lockfile.rb
test_gem_request_set_lockfile_parser.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_request_set_lockfile_tokenizer.rb
test_gem_requirement.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_resolver.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_resolver_activation_request.rb
test_gem_resolver_api_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_resolver_api_specification.rb
test_gem_resolver_best_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
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 Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_resolver_index_specification.rb
test_gem_resolver_installed_specification.rb
test_gem_resolver_installer_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_resolver_local_specification.rb
test_gem_resolver_lock_set.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
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 Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_security_policy.rb Remove encoding magic comments 2020-06-15 21:20:37 +09:00
test_gem_security_signer.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_security_trust_dir.rb
test_gem_server.rb
test_gem_silent_ui.rb
test_gem_source.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_source_fetch_problem.rb
test_gem_source_git.rb Replace Gem::Util.silent_system with better tools 2020-06-15 21:20:37 +09:00
test_gem_source_installed.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_list.rb
test_gem_source_local.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_source_lock.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_specific_file.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_source_vendor.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_spec_fetcher.rb Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown"" 2020-06-15 19:48:25 +09:00
test_gem_specification.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_stream_ui.rb [rubygems/rubygems] Use parenthesis for clarity for ternary condition 2020-06-10 21:33:46 +09:00
test_gem_stub_specification.rb [rubygems/rubygems] Add gem build test to check for removed methods. 2020-05-08 07:38:50 +09:00
test_gem_text.rb [rubygems/rubygems] Enable Style/ExtraSpacing and auto-correct 2020-03-30 12:48:23 +09:00
test_gem_uninstaller.rb [rubygems/rubygems] Fix symlink RubyGems test problems for non-admin user. 2020-05-08 14:13:29 +09:00
test_gem_unsatisfiable_dependency_error.rb
test_gem_uri_formatter.rb
test_gem_util.rb Deprecate Gem::Util.silent_system 2020-06-15 21:20:37 +09:00
test_gem_validator.rb
test_gem_version.rb
test_gem_version_option.rb
test_kernel.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_project_sanity.rb [rubygems/rubygems] Move require to the top 2020-06-05 07:32:42 +09:00
test_remote_fetch_error.rb
test_require.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
wrong_key_cert.pem
wrong_key_cert_32.pem