diff options
author | Naïm Favier <n@monade.li> | 2022-03-19 11:51:39 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-03-19 11:51:39 +0100 |
commit | 8f57dc38d93d9a6b8a792e7cd963af676a1de252 (patch) | |
tree | 723e0c6fb2377e719df190dc75a8d09980726918 /nixos/lib/testing-python.nix | |
parent | ca8c877f8cd1f9b84e8aa57741aa5cd60a3a2ba3 (diff) |
fixup! nixos/testing: restrict arguments to makeTest
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r-- | nixos/lib/testing-python.nix | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index 8c4cdb31791ab..facc7a253a759 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -224,12 +224,7 @@ rec { interactive = true; }; - test = - let - passMeta = drv: drv // lib.optionalAttrs (meta != {}) { - meta = (drv.meta or { }) // meta; - }; - in passMeta (runTests { inherit driver pos driverInteractive; }); + test = lib.addMetaAttrs meta (runTests { inherit driver pos driverInteractive; }); in test // { |