commit: 12d733dbb55780dd082174b43e2d4c13f6a912ab Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Feb 9 09:10:15 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Feb 9 09:13:50 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d733db
dev-ruby/rake: fix tests when rake is not installed Ensure that the test suite uses the local files only, otherwise one of the tests will mysteriously fail when rake is not already installed. Also avoid loading minitest plugins which may break when rake is not present. Closes: https://bugs.gentoo.org/867652 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rake/rake-13.1.0.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-ruby/rake/rake-13.1.0.ebuild b/dev-ruby/rake/rake-13.1.0.ebuild index 4ce7d447e2c7..2b254de6cfb7 100644 --- a/dev-ruby/rake/rake-13.1.0.ebuild +++ b/dev-ruby/rake/rake-13.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -43,7 +43,7 @@ all_ruby_compile() { } each_ruby_test() { - ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die + MT_NO_PLUGINS=true RUBYLIB="$(pwd)/lib" ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die } all_ruby_install() {
