Commit 38e68c42 authored by Paul Meyer's avatar Paul Meyer
Browse files

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: default avatarPaul Meyer <katexochen0@gmail.com>
parent 07ffd4bf
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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;