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
|
(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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue