mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
tests: pass diskoLib instead of makeDiskoTest
This commit is contained in:
1 parent
5e253d949f
commit
04e227bab7
24 files changed
+71
-72
No files matched your search
+2
-3
@@ -1,11 +1,10 @@
|
||||
{ makeTest ? import <nixpkgs/nixos/tests/make-test-python.nix>
|
||||
, eval-config ? import <nixpkgs/nixos/lib/eval-config.nix>
|
||||
, pkgs ? (import <nixpkgs> { })
|
||||
, pkgs ? import <nixpkgs> { }
|
||||
}:
|
||||
let
|
||||
lib = pkgs.lib;
|
||||
diskoLib = import ../lib { inherit lib makeTest eval-config; };
|
||||
makeDiskoTest = diskoLib.testLib.makeDiskoTest;
|
||||
|
||||
allTestFilenames =
|
||||
builtins.map (lib.removeSuffix ".nix") (
|
||||
@@ -14,7 +13,7 @@ let
|
||||
(lib.attrNames (builtins.readDir ./.))
|
||||
);
|
||||
|
||||
allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit makeDiskoTest pkgs; }) // {
|
||||
allTests = lib.genAttrs allTestFilenames (test: import (./. + "/${test}.nix") { inherit diskoLib pkgs; }) // {
|
||||
standalone = (pkgs.nixos [ ../example/stand-alone/configuration.nix ]).config.system.build.toplevel;
|
||||
};
|
||||
in
|
||||
|
||||
Reference in new issue
Block a user