x11-misc/leftwm-theme: fix tests

Closes: https://bugs.gentoo.org/912304
Signed-off-by: Remigiusz Micielski <rmicielski@purelymail.com>
This commit is contained in:
Remigiusz Micielski
2023-08-15 15:01:28 +02:00
parent bc3aabfb34
commit d4960d8d4a

View File

@@ -216,6 +216,14 @@ src_unpack() {
cargo_src_unpack
}
src_test() {
# leftwm-theme requires an internet connection pass "test_update_repos"
# unfortunately it doesn't look like that there's an option to skip particular tests in cargo.eclass
cargo test $(usex debug "" --release) ${ECARGO_ARGS[@]} "$@" -- --skip test_update_repos
einfo "${@}"
"${@}" || die "cargo test failed"
}
src_install() {
dodoc README.md
cd target/$(usex debug debug release) || die