mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
nixos/tests/kernel-generic: make attributes derivations, not functions
Pass the args from kernel-generic.nix's top-level to the individual tests. Makes `nix-build -A nixosTests.kernel-generic.<attr>` and `nix-build nixos/tests/kernel-generic.nix -A <attr>` work as expected.
This commit is contained in:
parent
42e029e48f
commit
17efdfbbca
@ -1,7 +1,7 @@
|
||||
{ system ? builtins.currentSystem
|
||||
, config ? { }
|
||||
, pkgs ? import ../.. { inherit system config; }
|
||||
}:
|
||||
}@args:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
@ -22,7 +22,7 @@ let
|
||||
assert "Linux" in machine.succeed("uname -s")
|
||||
assert "${linuxPackages.kernel.modDirVersion}" in machine.succeed("uname -a")
|
||||
'';
|
||||
}));
|
||||
}) args);
|
||||
in
|
||||
with pkgs; {
|
||||
linux_4_4 = makeKernelTest "4.4" linuxPackages_4_4;
|
||||
|
Loading…
Reference in New Issue
Block a user