mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
Merge pull request #284263 from amarshall/fix-zfs-test-wrong-pkg
nixos/tests/zfs: fix using wrong package in tests; minor cleanup
This commit is contained in:
commit
bed631549e
|
@ -8,12 +8,9 @@ with import ../lib/testing-python.nix { inherit system pkgs; };
|
||||||
let
|
let
|
||||||
|
|
||||||
makeZfsTest = name:
|
makeZfsTest = name:
|
||||||
{ kernelPackage ? if enableUnstable
|
{ kernelPackages
|
||||||
then pkgs.zfsUnstable.latestCompatibleLinuxPackages
|
|
||||||
else pkgs.linuxPackages
|
|
||||||
, enableUnstable ? false
|
|
||||||
, enableSystemdStage1 ? false
|
, enableSystemdStage1 ? false
|
||||||
, zfsPackage ? if enableUnstable then pkgs.zfs else pkgs.zfsUnstable
|
, zfsPackage
|
||||||
, extraTest ? ""
|
, extraTest ? ""
|
||||||
}:
|
}:
|
||||||
makeTest {
|
makeTest {
|
||||||
|
@ -35,7 +32,7 @@ let
|
||||||
boot.loader.timeout = 0;
|
boot.loader.timeout = 0;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
networking.hostId = "deadbeef";
|
networking.hostId = "deadbeef";
|
||||||
boot.kernelPackages = kernelPackage;
|
boot.kernelPackages = kernelPackages;
|
||||||
boot.zfs.package = zfsPackage;
|
boot.zfs.package = zfsPackage;
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
boot.initrd.systemd.enable = enableSystemdStage1;
|
boot.initrd.systemd.enable = enableSystemdStage1;
|
||||||
|
@ -197,16 +194,22 @@ in {
|
||||||
# maintainer: @raitobezarius
|
# maintainer: @raitobezarius
|
||||||
series_2_1 = makeZfsTest "2.1-series" {
|
series_2_1 = makeZfsTest "2.1-series" {
|
||||||
zfsPackage = pkgs.zfs_2_1;
|
zfsPackage = pkgs.zfs_2_1;
|
||||||
|
kernelPackages = pkgs.linuxPackages;
|
||||||
};
|
};
|
||||||
|
|
||||||
stable = makeZfsTest "stable" { };
|
stable = makeZfsTest "stable" {
|
||||||
|
zfsPackage = pkgs.zfsStable;
|
||||||
unstable = makeZfsTest "unstable" {
|
kernelPackages = pkgs.linuxPackages;
|
||||||
enableUnstable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
unstableWithSystemdStage1 = makeZfsTest "unstable" {
|
unstable = makeZfsTest "unstable" rec {
|
||||||
enableUnstable = true;
|
zfsPackage = pkgs.zfsUnstable;
|
||||||
|
kernelPackages = zfsPackage.latestCompatibleLinuxPackages;
|
||||||
|
};
|
||||||
|
|
||||||
|
unstableWithSystemdStage1 = makeZfsTest "unstable" rec {
|
||||||
|
zfsPackage = pkgs.zfsUnstable;
|
||||||
|
kernelPackages = zfsPackage.latestCompatibleLinuxPackages;
|
||||||
enableSystemdStage1 = true;
|
enableSystemdStage1 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue