tests/test-derivation: don't invoke test modules

`def.module or lib.removeAttrs def [ "tests" ]` is actually equivalent to
`(def.module or lib.removeAttrs) def [ "tests" ]`.

This meant whenever `def` had a `module` attribute, it was invoked as
`def.module def [ "tests" ]`!
This commit is contained in:
Matt Sturgeon 2024-06-30 00:12:19 +01:00
parent 714aa7bb18
commit 78275321f8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -37,7 +37,7 @@ let
inherit name;
# The module can either be the actual definition,
# or a child attr named `module`.
module = def.module or lib.removeAttrs def [ "tests" ];
module = def.module or (lib.removeAttrs def [ "tests" ]);
dontRun = def.tests.dontRun or false;
pkgs = pkgsUnfree;
};