gnu: go-github-com-99designs-keyring: Simplify.

* gnu/packages/golang-crypto.scm (go-github-com-99designs-keyring)
[arguments] <test-flags>: Move skip tests logic here.
<phases>: Remove 'disable-failing-tests.

Change-Id: I69dc7a85963632c430bfc0f54caacaa371675bcd
This commit is contained in:
Sharlatan Hellseher 2025-01-11 15:23:11 +00:00
parent 0af5e34f2e
commit 7009476627
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -198,25 +198,15 @@ primitives.")
(arguments
(list
#:import-path "github.com/99designs/keyring"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-failing-tests
(lambda* (#:key tests? unpack-path #:allow-other-keys)
(with-directory-excursion (string-append "src/" unpack-path)
(substitute* (find-files "." "\\_test.go$")
;; Disable test requring running DBus.
(("TestLibSecretKeysWhenEmpty")
"OffTestLibSecretKeysWhenEmpty")
(("TestLibSecretKeysWhenNotEmpty")
"OffTestLibSecretKeysWhenNotEmpty")
(("TestLibSecretGetWhenEmpty")
"OffTestLibSecretGetWhenEmpty")
(("TestLibSecretGetWhenNotEmpty")
"OffTestLibSecretGetWhenNotEmpty")
(("TestLibSecretRemoveWhenEmpty")
"OffTestLibSecretRemoveWhenEmpty")
(("TestLibSecretRemoveWhenNotEmpty")
"OffTestLibSecretRemoveWhenNotEmpty"))))))))
#:test-flags
#~(list "-skip" (string-join
(list "TestLibSecretKeysWhenEmpty"
"TestLibSecretKeysWhenNotEmpty"
"TestLibSecretGetWhenEmpty"
"TestLibSecretGetWhenNotEmpty"
"TestLibSecretRemoveWhenEmpty"
"TestLibSecretRemoveWhenNotEmpty")
"|"))))
(native-inputs
(list gnupg go-github-com-stretchr-testify password-store))
(propagated-inputs