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
|
(define-public go-github-com-zalando-go-keyring
|
||||||
(package
|
(package
|
||||||
(name "go-github-com-zalando-go-keyring")
|
(name "go-github-com-zalando-go-keyring")
|
||||||
(version "0.2.5")
|
(version "0.2.6")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -2177,27 +2177,34 @@ system.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1p6qlsbj9rmqiwz9ly4c7jmifcx8m45xjhsbdwdvw2jzw5jc2ch1"))))
|
"0gavcs0k2wnw0q7zgcdhwca1phqls70wb93j2bdmjlvmrq9na6f4"))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/zalando/go-keyring"
|
#:import-path "github.com/zalando/go-keyring"
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-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
|
(replace 'check
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
(invoke "dbus-run-session" "--"
|
(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
|
(native-inputs
|
||||||
(list dbus))
|
(list dbus))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue