Make nscd startup synchronous

Nscd forks into the background before it's ready to accept
connections. So explicitly wait until it's ready.

http://hydra.nixos.org/build/10661767
This commit is contained in:
Eelco Dolstra
2014-04-24 23:18:47 +02:00
parent d7a7f80aff
commit 23297b0edd
2 changed files with 14 additions and 3 deletions
+2 -2
View File
@@ -13,6 +13,8 @@ import ./make-test.nix {
testScript =
''
$machine->waitForUnit("default.target");
subtest "nixos-version", sub {
$machine->succeed("[ `nixos-version | wc -w` = 2 ]");
};
@@ -61,8 +63,6 @@ import ./make-test.nix {
# Test whether hostname (and by extension nss_myhostname) works.
subtest "hostname", sub {
$machine->waitForUnit("dhcpcd.service");
$machine->waitForUnit("network.target");
$machine->succeed('[ "`hostname`" = machine ]');
$machine->succeed('[ "`hostname -s`" = machine ]');
};