commit:     c9435ce51cf36392d0db0625584125b3a48b1953
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat May  4 06:46:45 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat May  4 06:47:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9435ce5

dev-ruby/io-wait: fix running tests

Run the tests directly again to avoid unneeded dependencies in the
Rakefile.

Closes: https://bugs.gentoo.org/931132
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/io-wait/io-wait-0.3.1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-ruby/io-wait/io-wait-0.3.1.ebuild 
b/dev-ruby/io-wait/io-wait-0.3.1.ebuild
index 4c5293ff23a6..eb46cedf6b23 100644
--- a/dev-ruby/io-wait/io-wait-0.3.1.ebuild
+++ b/dev-ruby/io-wait/io-wait-0.3.1.ebuild
@@ -29,3 +29,7 @@ all_ruby_prepare() {
        sed -e 
'/test_wait_mask_\(negative\|readable\|writable\|zero\)/aomit("Requires working 
console")' \
                -i test/io/wait/test_io_wait.rb || die
 }
+
+each_ruby_test() {
+       ${RUBY} -Ilib:.:test:test/lib -rhelper -e 
'Dir["test/**/test_*.rb"].each{|f| require f}' || die
+}

Reply via email to