aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-07-25 21:41:17 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-07-25 21:41:30 +0100
commitebf41dcf110fe10814f1c6d7004bff3cfd42fa3a (patch)
tree19cf137647e7141593ecb40c9d074524966b507b /gnu/packages
parent8e233ea593eddaaadc1582cb79358d1983d711c2 (diff)
downloadguix-ebf41dcf110fe10814f1c6d7004bff3cfd42fa3a.tar.gz
guix-ebf41dcf110fe10814f1c6d7004bff3cfd42fa3a.zip
gnu: go-netns: Enable tests.
* gnu/packages/networking.scm (go-netns): Enable most of the tests. [arguments]: <#:phases>: Add 'disable-failing-tests phase. Change-Id: I1430de0df4cfab3a922f7a0e5bd0342e82efa871
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/networking.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 9813bc98e8..1afbe585da 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1932,8 +1932,17 @@ virtual machines, and certificates.")
(base32 "0rci8c211m57nya9il81fz6459pia3dj5i4b16fp34vjrkcxliml"))))
(build-system go-build-system)
(arguments
- `(#:import-path "github.com/vishvananda/netns"
- #:tests? #f)) ;tests require root privileges
+ (list
+ #:import-path "github.com/vishvananda/netns"
+ #: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.
+ (("TestGetNewSetDelete") "OffTestGetNewSetDelete")
+ (("TestThreaded") "OffTestThreaded"))))))))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/vishvananda/netns")