From 2b7e746c02861f7e10eee9a0d4e00d8dcb537a86 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 24 Apr 2014 15:18:46 +0200 Subject: [PATCH] Make the misc test a bit more robust --- nixos/tests/misc.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/tests/misc.nix b/nixos/tests/misc.nix index 363be2cbb357..f3b5bbd1a1e0 100644 --- a/nixos/tests/misc.nix +++ b/nixos/tests/misc.nix @@ -61,6 +61,7 @@ import ./make-test.nix { # Test whether hostname (and by extension nss_myhostname) works. subtest "hostname", sub { + $machine->waitForUnit("dhcpcd.service"); $machine->succeed('[ "`hostname`" = machine ]'); $machine->succeed('[ "`hostname -s`" = machine ]'); };