gdu: fix test skipping

This wasn't working as intended, as the skip flag was added
twice, which caused the second occurrence to overwrite the first,
and the build to fail on aarch64-linux, see
https://hydra.nixos.org/build/308978158/nixlog/1

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2025-10-18 18:26:01 +02:00
parent 07ffd4bf9f
commit 38e68c427d
+8 -5
View File
@@ -42,11 +42,14 @@ buildGoModule (finalAttrs: {
doCheck = !stdenv.hostPlatform.isDarwin;
checkFlags = [
# https://github.com/dundee/gdu/issues/371
"-skip=TestStoredAnalyzer"
"-skip=TestAnalyzePathWithIgnoring"
];
checkFlags =
let
skippedTests = [
"TestStoredAnalyzer" # https://github.com/dundee/gdu/issues/371
"TestAnalyzePathWithIgnoring"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
doInstallCheck = true;