guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 26b0ae1ba0a69dbfacf2da758a64fdba28650dd6
Author: Zheng Junjie <[email protected]>
AuthorDate: Sun Jul 5 11:10:17 2026 +0800
gnu: util-linux: Fix tests.
On some machines, this test will be skipped, but on others it will be
executed. However, since our bash is not located under /bin, the test will
fail.
And fincore/count seems to fail on btrfs.
* gnu/packages/linux.scm (util-linux) [arguments]<#:phases>: Adjust
'pre-check
phase.
Change-Id: I9bdaf0dbca832919fa6ccb633023c8565ef22709
Signed-off-by: Zheng Junjie <[email protected]>
---
gnu/packages/linux.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 328712844f..acca5cfa6d 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3174,6 +3174,12 @@ deviation, and minimum and maximum values. It can show
a nice histogram too.")
(substitute* "tests/helpers/test_mkfds.c"
(("/etc/fstab")
(which "sh")))
+ (substitute* "tests/ts/coresched/coresched"
+ (("/bin/bash -c")
+ (string-append (which "bash") " -c")))
+ (substitute* "tests/ts/fincore/count"
+ (("\"\\$FS\" = \"overlay\"")
+ "\"$FS\" = \"overlay\" || \"$FS\" = \"btrfs\""))
(substitute* "tests/helpers/test_enosys.c"
(("/bin/false")
(which "false"))))))