nixosTests.systemd-networkd-dhcpserver-static-leases: handleTest -> runTest

This commit is contained in:
Sizhe Zhao 2025-07-10 23:15:09 +08:00
parent 059f9f4c20
commit e9c1e2efe0
No known key found for this signature in database
GPG Key ID: ED1807251A7DA08F
2 changed files with 83 additions and 87 deletions

View File

@ -1386,9 +1386,7 @@ in
systemd-networkd = runTest ./systemd-networkd.nix;
systemd-networkd-bridge = runTest ./systemd-networkd-bridge.nix;
systemd-networkd-dhcpserver = runTest ./systemd-networkd-dhcpserver.nix;
systemd-networkd-dhcpserver-static-leases =
handleTest ./systemd-networkd-dhcpserver-static-leases.nix
{ };
systemd-networkd-dhcpserver-static-leases = runTest ./systemd-networkd-dhcpserver-static-leases.nix;
systemd-networkd-ipv6-prefix-delegation =
handleTest ./systemd-networkd-ipv6-prefix-delegation.nix
{ };

View File

@ -1,8 +1,7 @@
# In contrast to systemd-networkd-dhcpserver, this test configures
# the router with a static DHCP lease for the client's MAC address.
import ./make-test-python.nix (
{ lib, ... }:
{
{ lib, ... }:
{
name = "systemd-networkd-dhcpserver-static-leases";
meta = with lib.maintainers; {
maintainers = [ veehaitch ];
@ -92,5 +91,4 @@ import ./make-test-python.nix (
client.wait_until_succeeds("ping -c 5 10.0.0.1")
router.wait_until_succeeds("ping -c 5 10.0.0.10")
'';
}
)
}