Commit 8dd1d47b authored by László Vaskó's avatar László Vaskó
Browse files

unblob: support easily disabling multiple test parameters

parent 2c280cbd
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -104,11 +104,17 @@ python3.pkgs.buildPythonApplication rec {

  versionCheckProgramArg = "--version";

  pytestFlagsArray = [
    "--no-cov"
  pytestFlagsArray =
    let
      # `disabledTests` swallows the parameters between square brackets
      disabled = [
        # https://github.com/tytso/e2fsprogs/issues/152
    "-k 'not test_all_handlers[filesystem.extfs]'"
        "test_all_handlers[filesystem.extfs]"
      ];
    in
    [
      "--no-cov"
      "-k 'not ${lib.concatStringsSep " and not " disabled}'"
    ];

  passthru = {