mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
0af5e34f2e
commit
7009476627
1 changed files with 9 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue