tests: pass diskoLib instead of makeDiskoTest

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-07-28 12:43:42 +00:00
1 parent 5e253d949f
commit 04e227bab7
24 files changed
+71 -72

No files matched your search

+2 -3
View File
@@ -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