summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-08-12 20:57:39 +0200
committerHans de Graaff <graaff@gentoo.org>2023-08-13 07:22:43 +0200
commit58a7641982763e9317841f2631f556c75c727868 (patch)
tree08949d4d9b22cd0f8de87369990f7e6cc8b211d7 /eclass/ruby-fakegem.eclass
parentdev-ruby/rspec-rails: add missing test dependency (diff)
downloadgentoo-58a7641982763e9317841f2631f556c75c727868.tar.gz
gentoo-58a7641982763e9317841f2631f556c75c727868.tar.bz2
gentoo-58a7641982763e9317841f2631f556c75c727868.zip
eclass/ruby-fakegem.eclass: always avoid minitest plugins
Minitest will by default scan for any plugin installed by any gem and register it. This has been a source of test failures when a plugin can no longer be initialized for some reason. Many ebuilds already set the environment variable for this, but we never want autoloading so turn this off in the eclass instead. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass/ruby-fakegem.eclass')
-rw-r--r--eclass/ruby-fakegem.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass
index db3db300c023..40ff76ce900e 100644
--- a/eclass/ruby-fakegem.eclass
+++ b/eclass/ruby-fakegem.eclass
@@ -585,9 +585,12 @@ each_fakegem_test() {
# @DESCRIPTION:
# Run the tests for this package.
if [[ ${RUBY_FAKEGEM_RECIPE_TEST} != none ]]; then
- each_ruby_test() {
- each_fakegem_test
- }
+ # Avoid autoloading all minitest plugins present in any gem.
+ export MT_NO_PLUGINS=true
+
+ each_ruby_test() {
+ each_fakegem_test
+ }
fi
# @FUNCTION: ruby_fakegem_extensions_installed