mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 22:16:32 +01:00
gnu: go-github-com-containerd-cgroups: Fix build.
* gnu/packages/golang-xyz.scm (go-github-com-containerd-cgroups) [arguments]<test-flags>: Move tests skip logic here and skip more tests. <phases>: Remove 'disable-failing-tests. [propagated-inputs]: Add go-github-com-cilium-ebpf. Change-Id: I3ee11a4c21ea3750e3e886155530439f2e363811
This commit is contained in:
parent
cfaa61bb68
commit
9c54b74a7b
1 changed files with 26 additions and 10 deletions
|
@ -2151,20 +2151,36 @@ (define-public go-github-com-containerd-cgroups
|
|||
(arguments
|
||||
(list
|
||||
#:import-path "github.com/containerd/cgroups"
|
||||
#: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$")
|
||||
;; expected error "controller is not supported" but received
|
||||
;; "cgroups: cannot find cgroup mount destination"
|
||||
(("TestSystemd240") "OffTestSystemd240"))))))))
|
||||
#:test-flags
|
||||
#~(list "-skip" (string-join
|
||||
;; cannot find cgroup mount destination"
|
||||
(list "TestSystemd240"
|
||||
;; cannot statfs cgroup root
|
||||
"TestCgroupType"
|
||||
"TestCgroupv2CpuStats"
|
||||
"TestCgroupv2MemoryStats"
|
||||
"TestCgroupv2PSIStats"
|
||||
"TestCgroupv2PidsStats"
|
||||
"TestErrorsWhenUnitAlreadyExists"
|
||||
"TestEventChanCleanupOnCgroupRemoval"
|
||||
"TestIgnoreUnitExistsWhenPidNegativeOne"
|
||||
"TestKill"
|
||||
"TestMoveTo"
|
||||
"TestSystemdCgroupCpuController"
|
||||
"TestSystemdCgroupMemoryController"
|
||||
"TestSystemdCgroupPSIController"
|
||||
"TestSystemdCgroupPidsController"
|
||||
;; Assertion failed
|
||||
"TestDeviceFilter_Nil"
|
||||
"TestDeviceFilter_Privileged"
|
||||
"TestDeviceFilter_Weird")
|
||||
"|"))))
|
||||
(native-inputs
|
||||
(list go-github-com-stretchr-testify
|
||||
go-go-uber-org-goleak))
|
||||
(propagated-inputs
|
||||
(list go-github-com-coreos-go-systemd-v22
|
||||
(list go-github-com-cilium-ebpf
|
||||
go-github-com-coreos-go-systemd-v22
|
||||
go-github-com-docker-go-units
|
||||
go-github-com-godbus-dbus-v5
|
||||
go-github-com-gogo-protobuf
|
||||
|
|
Loading…
Reference in a new issue