From 9a46ce8a11bcbd0a13e6ffa278dbbb35a0ef5ed9 Mon Sep 17 00:00:00 2001 From: Zheng Junjie Date: Sun, 5 Jul 2026 11:10:17 +0800 Subject: 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 --- gnu/packages/linux.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a9e034878e5..8f39aab3f53 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")))))) -- cgit v1.2.3