guix_mirror_bot pushed a commit to branch go-team
in repository guix.
commit 6ce1ec1599e7de0dabc7c48d12ca554ada6d4c32
Author: Roman Scherer <[email protected]>
AuthorDate: Sun Apr 19 14:14:20 2026 +0200
gnu: go-github-com-shirou-gopsutil-v4: Skip CPU tests on non-x86 Linux.
TestCounts and TestInfo read /proc/cpuinfo fields that are absent on
non-x86 Linux.
* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v4)
[arguments]<#:test-flags>: On non-x86 targets, additionally skip
TestCounts and TestInfo.
Relates-to: guix/guix!8004
Change-Id: Ieefe26cd1d442e0756a04b5de3249a60ce0aa153
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-xyz.scm | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index ba62f4da5b..7742e467ff 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -25648,15 +25648,22 @@ sensors).")
(arguments
(list
#:import-path "github.com/shirou/gopsutil/v4"
- ;; Three tests fail:
;; [1] error open /var/run/utmp: no such file or directory
;; [2] PlatformInformation() returns empty
;; [3] Could not get temperature
- #:test-flags #~(list "-skip" (string-join
- (list "TestUsers" ;1
- "TestPlatformInformation" ;2
- "TestTemperatures") ;3
- "|"))))))
+ ;; [4] TestCounts and TestInfo read /proc/cpuinfo fields that
+ ;; are absent on non-x86 Linux.
+ #:test-flags
+ #~(list "-skip"
+ (string-join
+ (append
+ (list "TestUsers" ;1
+ "TestPlatformInformation" ;2
+ "TestTemperatures") ;3
+ (if #$(target-x86?) ;4
+ '()
+ (list "TestCounts" "TestInfo")))
+ "|"))))))
(define-public go-github-com-shurcool-sanitized-anchor-name
(package