mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-godbus-dbus: Simplify.
* gnu/packages/golang.scm (go-github-com-godbus-dbus) [arguments] <phases>: Remove 'disable-failing-tests and move skipped tests to 'check. Change-Id: Id7081a0e052ec307a8bc8dcb76e142702990857c
This commit is contained in:
parent
1e68d255c7
commit
6036d09b6c
1 changed files with 5 additions and 8 deletions
|
@ -4732,18 +4732,15 @@ and @url{https://rfc-editor.org/rfc/rfc8018.html,RFC 8018}.")
|
|||
#:import-path "github.com/godbus/dbus"
|
||||
#: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 D-Bus instance.
|
||||
(("TestSystemBus") "OffTestSystemBus")
|
||||
(("TestConnectSystemBus") "OffTestConnectSystemBus")))))
|
||||
(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" "./..."))))))))
|
||||
(invoke "dbus-run-session" "--"
|
||||
"go" "test" "./..."
|
||||
;; Disable tests which require a system D-Bus
|
||||
;; instance.
|
||||
"-skip" "TestSystemBus|TestConnectSystemBus"))))))))
|
||||
(native-inputs
|
||||
(list dbus)) ;dbus-launch
|
||||
(home-page "https://github.com/godbus/dbus/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue