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:
Sharlatan Hellseher 2024-12-27 15:21:35 +00:00
parent 1e68d255c7
commit 6036d09b6c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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/")