sharlatan pushed a commit to branch go-team
in repository guix.
commit f22b2ee53623fd67b08b666127a27daadd368e71
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Dec 3 09:13:39 2024 +0000
gnu: go-github-com-vishvananda-netlink: Simplify package.
* gnu/packages/linux.scm (go-github-com-vishvananda-netlink)
[arguments]<test-flags>: Move skipped tests here.
<phases>: Remove 'disable-failing-tests.
Change-Id: I66a6f0574f46b55847c2ba2011a45b4e43aeeaad
---
gnu/packages/linux.scm | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 78d3d737b5..ce00ef42ac 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9596,18 +9596,11 @@ management tools in userspace.")
;; cannot use 0xabcdef99 (untyped int constant 2882400153) as int value
;; in struct literal (overflows)
#:tests? (and (not (%current-target-system)) (target-x86-64?))
- #:import-path "github.com/vishvananda/netlink"
- #: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 requiring root access.
- (("TestNetNsIdByFd") "OffTestNetNsIdByFd")
- (("TestNetNsIdByPid") "OffTestNetNsIdByPid"))))))))
+ #:test-flags #~(list "-skip" "TestNetNsIdByFd|TestNetNsIdByPid")
+ #:import-path "github.com/vishvananda/netlink"))
(propagated-inputs
- (list go-golang-org-x-sys go-github-com-vishvananda-netns))
+ (list go-github-com-vishvananda-netns
+ go-golang-org-x-sys))
(home-page "https://github.com/vishvananda/netlink")
(synopsis "Simple netlink library for Go")
(description