mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: go-github-com-aws-aws-sdk-go: Enable all tests.
* gnu/packages/golang-web.scm (go-github-com-aws-aws-sdk-go): Enable all tests. [arguments]: <#:phases>: Add 'disable-failing-tests and use custom 'check phases. Change-Id: I732a4f0c1da8e431dd751aaa4a451f0b1a6656cb
This commit is contained in:
parent
265345083d
commit
1664dfa7b7
1 changed files with 16 additions and 1 deletions
|
@ -243,7 +243,22 @@ (define-public go-github-com-aws-aws-sdk-go
|
|||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:import-path "github.com/aws/aws-sdk-go"))
|
||||
#:import-path "github.com/aws/aws-sdk-go"
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'disable-failing-tests
|
||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(substitute* (find-files "." "\\_test.go$")
|
||||
(("TestProcessProviderTimeout")
|
||||
"OffTestProcessProviderTimeout")))))
|
||||
;; XXX: Workaround for go-build-system's lack of Go modules
|
||||
;; support.
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||
(when tests?
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(invoke "go" "test" "-v" "./..."))))))))
|
||||
(propagated-inputs
|
||||
(list go-github-com-jmespath-go-jmespath))
|
||||
(home-page "https://github.com/aws/aws-sdk-go")
|
||||
|
|
Loading…
Reference in a new issue