commit:     d4960d8d4ad65e412413bf959952b1a692b25c34
Author:     Remigiusz Micielski <rmicielski <AT> purelymail <DOT> com>
AuthorDate: Tue Aug 15 13:01:28 2023 +0000
Commit:     Remigiusz Micielski <remigiusz.micielski <AT> gmail <DOT> com>
CommitDate: Tue Aug 15 13:01:28 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d4960d8d

x11-misc/leftwm-theme: fix tests

Closes: https://bugs.gentoo.org/912304
Signed-off-by: Remigiusz Micielski <rmicielski <AT> purelymail.com>

 x11-misc/leftwm-theme/leftwm-theme-0.1.2_rc1.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/x11-misc/leftwm-theme/leftwm-theme-0.1.2_rc1.ebuild 
b/x11-misc/leftwm-theme/leftwm-theme-0.1.2_rc1.ebuild
index b242ce55ac..3602c19cb3 100644
--- a/x11-misc/leftwm-theme/leftwm-theme-0.1.2_rc1.ebuild
+++ b/x11-misc/leftwm-theme/leftwm-theme-0.1.2_rc1.ebuild
@@ -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

Reply via email to