From 476da19e46c29b4244fd73d4c056a02324de0b9f Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 17 Nov 2021 17:14:14 -0500 Subject: dev-libs/libusb: skip stress test when /dev/bus/usb is missing Closes: https://bugs.gentoo.org/824266 Signed-off-by: Mike Gilbert --- dev-libs/libusb/libusb-1.0.24-r2.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-libs/libusb') diff --git a/dev-libs/libusb/libusb-1.0.24-r2.ebuild b/dev-libs/libusb/libusb-1.0.24-r2.ebuild index 2e1af019d6a1..c13d355add9e 100644 --- a/dev-libs/libusb/libusb-1.0.24-r2.ebuild +++ b/dev-libs/libusb/libusb-1.0.24-r2.ebuild @@ -46,7 +46,12 @@ multilib_src_test() { emake check # noinst_PROGRAMS from tests/Makefile.am - tests/stress || die + if [[ -e /dev/bus/usb ]]; then + tests/stress || die + else + # https://bugs.gentoo.org/824266 + ewarn "/dev/bus/usb does not exist, skipping stress test" + fi } multilib_src_install() { -- cgit v1.2.3-65-gdbad