Skip to content

Commit 8dd1d47

Browse files
committed
unblob: support easily disabling multiple test parameters
1 parent 2c280cb commit 8dd1d47

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

pkgs/by-name/un/unblob/package.nix

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,18 @@ python3.pkgs.buildPythonApplication rec {
104104

105105
versionCheckProgramArg = "--version";
106106

107-
pytestFlagsArray = [
108-
"--no-cov"
109-
# `disabledTests` swallows the parameters between square brackets
110-
# https://github.com/tytso/e2fsprogs/issues/152
111-
"-k 'not test_all_handlers[filesystem.extfs]'"
112-
];
107+
pytestFlagsArray =
108+
let
109+
# `disabledTests` swallows the parameters between square brackets
110+
disabled = [
111+
# https://github.com/tytso/e2fsprogs/issues/152
112+
"test_all_handlers[filesystem.extfs]"
113+
];
114+
in
115+
[
116+
"--no-cov"
117+
"-k 'not ${lib.concatStringsSep " and not " disabled}'"
118+
];
113119

114120
passthru = {
115121
updateScript = gitUpdater { };

0 commit comments

Comments
 (0)