Is there a way to install a package even if a test fails?
Assuming it's in an actual test/check function in the PKGBUILD
yay -S blah --mflags "--nocheck"
Most helpful comment
Assuming it's in an actual test/check function in the PKGBUILD