From 12d733dbb55780dd082174b43e2d4c13f6a912ab Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Fri, 9 Feb 2024 10:10:15 +0100 Subject: 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 --- dev-ruby/rake/rake-13.1.0.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev-ruby/rake') 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() { -- cgit v1.2.3-65-gdbad