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 Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
child_cert.pem
child_cert_32.pem
child_key.pem
client.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
simple_gem.rb Merge rubygems master branch from github.com/rubygems/rubygems. 2018-10-22 00:27:02 +00:00
ssl_cert.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
ssl_key.pem Update the certificate files to make the test pass on Debian 10 2019-05-28 10:07:29 +09:00
test_bundled_ca.rb [rubygems/rubygems] Remove minitest compatibility code 2020-05-08 07:38:50 +09:00
test_config.rb Merge upstream from rubygems/rubygems master branch. 2018-10-31 03:23:30 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_cleanup_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
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 Update rubygems with latest upstream changes 2019-04-28 11:07:45 +09:00
test_gem_commands_environment_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_fetch_command.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
test_gem_commands_info_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_mirror.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
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 Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_commands_server_command.rb Prepare to release rubygems-3.1.0 2019-12-15 16:48:52 +09:00
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 Merge the current master branch of rubygems/rubygems. 2020-02-01 11:14:57 +09:00
test_gem_commands_specification_command.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_commands_stale_command.rb Merge RubyGems 3.0.0.beta1. 2018-05-30 13:01:35 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
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 [rubygems/rubygems] Add Gem::Dependency#identity method 2019-10-05 10:50:02 +09:00
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 [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_doctor.rb Sync rubygems with current master (#2889) 2020-03-24 15:39:24 +09:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_installer.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_local_remote_options.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_name_tuple.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_package_tar_reader_entry.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
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 Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_platform.rb [rubygems/rubygems] add tests 2019-09-26 17:48:01 +09:00
test_gem_rdoc.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_remote_fetcher.rb Simplify handling of a `LoadError` 2020-06-17 21:16:56 +09:00
test_gem_request.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_request_connection_pools.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 [rubygems/rubygems] Consistently left align tokenizer test columns 2020-03-30 12:48:06 +09:00
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 Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_conflict.rb [rubygems/rubygems] Remove conflict.rb code that was supposed to be removed in Rubygems 3 2019-07-31 07:47:01 +08:00
test_gem_resolver_dependency_request.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_git_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_git_specification.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
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 Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_installed_specification.rb Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_requirement_list.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_specification.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_resolver_vendor_set.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_resolver_vendor_specification.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_server.rb [rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems 2020-03-30 12:42:10 +09:00
test_gem_silent_ui.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
test_gem_source.rb Use space inside block braces everywhere 2020-06-15 21:20:37 +09:00
test_gem_source_fetch_problem.rb Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 Merge RubyGems master@9be7858f7f17eae3058204f3c03e4b798ba18b9c 2019-02-14 12:59:03 +00:00
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 Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_uri_formatter.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
test_gem_util.rb Deprecate `Gem::Util.silent_system` 2020-06-15 21:20:37 +09:00
test_gem_validator.rb Merge rubygems master from upstream. 2019-06-01 13:50:41 +03:00
test_gem_version.rb Merge the current master branch of rubygems/rubygems. 2020-02-01 11:14:57 +09:00
test_gem_version_option.rb Merge master branch from rubygems/rubygems upstream. 2018-11-21 10:20:47 +00:00
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 Prepare to release RubyGems 3.1.0 final version. 2019-12-13 20:19:33 +09:00
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