nixpkgs/nixos/tests/make-test-python.nix
Jacob Moody d9039fcdd2 nixos/tests: readd builtins.currentSystem to make-test-python.nix
There is more nuance in the  ways people expect to run tests,
as such this still has some breakage. Revert for now.
2024-03-27 08:37:43 -05:00

9 lines
291 B
Nix

f: {
system ? builtins.currentSystem,
pkgs ? import ../.. { inherit system; config = {}; overlays = []; },
...
} @ args:
with import ../lib/testing-python.nix { inherit system pkgs; };
makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)