mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
nixosTests.hostname: migrate to runTest (#555616)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user