Make the misc test a bit more robust

This commit is contained in:
Eelco Dolstra 2014-04-24 15:18:46 +02:00
parent 2d8c0d24f2
commit 2b7e746c02

View File

@ -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 ]');
};