mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-zalando-go-keyring: Update to 0.2.6.
* gnu/packages/golang.scm (go-github-com-zalando-go-keyring): Update to 0.2.6. [arguments] <phases>: Remove 'disable-failing-tests and use "-skip" test option instead. [phases] {check}: Skip 7 more tests. Change-Id: I09fd81f75514d4cd134e16cd234096a2898eb6ff
This commit is contained in:
parent
dd54202db4
commit
b6c6c2c94c
1 changed files with 18 additions and 11 deletions
|
@ -2168,7 +2168,7 @@ system.")
|
|||
(define-public go-github-com-zalando-go-keyring
|
||||
(package
|
||||
(name "go-github-com-zalando-go-keyring")
|
||||
(version "0.2.5")
|
||||
(version "0.2.6")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
|
@ -2177,27 +2177,34 @@ system.")
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1p6qlsbj9rmqiwz9ly4c7jmifcx8m45xjhsbdwdvw2jzw5jc2ch1"))))
|
||||
"0gavcs0k2wnw0q7zgcdhwca1phqls70wb93j2bdmjlvmrq9na6f4"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:import-path "github.com/zalando/go-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 tests which require a system DBus instance.
|
||||
(("TestDelete") "OffTestDelete")
|
||||
(("TestGet") "OffTestGet")
|
||||
(("TestSet") "OffTestSet")))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(invoke "dbus-run-session" "--"
|
||||
"go" "test" "-v" "./..."))))))))
|
||||
"go" "test" "-v"
|
||||
"-skip" (string-join
|
||||
;; Disable tests which require a system
|
||||
;; DBus instance.
|
||||
(list "TestDelete"
|
||||
"TestDeleteAll"
|
||||
"TestDeleteAllEmptyService"
|
||||
"TestDeleteNonExisting"
|
||||
"TestGet"
|
||||
"TestGetMultiLine"
|
||||
"TestGetNonExisting"
|
||||
"TestGetSingleLineHex"
|
||||
"TestGetUmlaut"
|
||||
"TestSet")
|
||||
"|")
|
||||
"./..."))))))))
|
||||
(native-inputs
|
||||
(list dbus))
|
||||
(propagated-inputs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue