diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ab9e9f065101..d480c9263a77 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -813,7 +813,10 @@ in homer = handleTest ./homer { }; honk = runTest ./honk.nix; hoogle = runTest ./hoogle.nix; - hostname = handleTest ./hostname.nix { }; + hostname = import ./hostname.nix { + inherit pkgs runTest; + inherit (pkgs) lib; + }; hound = runTest ./hound.nix; hub = runTest ./git/hub.nix; hydra = runTest ./hydra; diff --git a/nixos/tests/hostname.nix b/nixos/tests/hostname.nix index 0e161bffc422..0012604cf185 100644 --- a/nixos/tests/hostname.nix +++ b/nixos/tests/hostname.nix @@ -1,11 +1,10 @@ { - system ? builtins.currentSystem, - config ? { }, - pkgs ? import ../.. { inherit system config; }, + pkgs, + runTest, + lib, }: -with import ../lib/testing-python.nix { inherit system pkgs; }; -with pkgs.lib; +with lib; let makeHostNameTest = @@ -19,7 +18,7 @@ let in if (res.success && res.value != null) then res.value else "null"; in - makeTest { + runTest { name = "hostname-${fqdn}"; meta = with pkgs.lib.maintainers; { maintainers = [