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