From: Hans de Graaff Date: Sun, 13 Oct 2019 09:14:36 +0000 (+0200) Subject: dev-ruby/tzinfo: skip "safe" tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01ddd17cf2fc39e63afb608c6e6838bcb52794d1;p=gentoo.git dev-ruby/tzinfo: skip "safe" tests We cannot guarantee that these tests will pass since they depend on the permissions of the directory hierarchy. Fixes: https://bugs.gentoo.org/693828 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Hans de Graaff --- diff --git a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild index 1b36cf383f93..37433640300f 100644 --- a/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild +++ b/dev-ruby/tzinfo/tzinfo-1.2.5.ebuild @@ -29,4 +29,7 @@ ruby_add_bdepend "test? ( dev-ruby/minitest:5 )" all_ruby_prepare() { # Set the secure permissions that tests expect. chmod 0755 "${HOME}" || die "Failed to fix permissions on home" + + # Avoid taint tests that throw SecurityErrors on newer ruby versions. + sed -i -e '/_info_tainted/askip"SecurityError"' test/tc_ruby_data_source.rb || die }