diff --git a/dev-ruby/libusb/libusb-0.7.2.ebuild b/dev-ruby/libusb/libusb-0.7.2.ebuild index f14719a8f8ba7..2c8b84ef538b2 100644 --- a/dev-ruby/libusb/libusb-0.7.2.ebuild +++ b/dev-ruby/libusb/libusb-0.7.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -28,13 +28,13 @@ all_ruby_prepare() { -e 's/git ls-files --/find/' \ -e 's/git ls-files/find */' \ -i ${RUBY_FAKEGEM_GEMSPEC} || die - - # Avoid tests that try to open devices or depend on specific hardware - rm -f test/test_libusb_{bos,bulk_stream_transfer,descriptors}.rb || die } each_ruby_test() { - ${RUBY} -I.:lib -e "Dir['test/test_*.rb'].each{|f| require f}" || die + # https://github.com/larskanis/libusb/tree/master#testing-libusb-gem + # See ci task in the rakefile + ${RUBY} -I.:lib -e "Dir['test/test_libusb(_structs)?.rb'].each{|f| require f}" -- --verbose || die + } each_ruby_install() {