nixosTests.hostname: migrate to runTest (#555616)

This commit is contained in:
Yohann Boniface
2026-08-23 15:22:48 +00:00
committed by GitHub
2 changed files with 9 additions and 7 deletions

View File

@@ -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;

View File

@@ -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 = [