samba test: fix race condition

This commit is contained in:
Nikolay Amiantov 2017-03-01 03:16:35 +03:00
parent fe33c28ec9
commit a6c6d08430

View File

@ -37,12 +37,11 @@ import ./make-test.nix ({ pkgs, ... }:
testScript =
''
$server->start;
$server->waitForUnit("samba-smbd");
$server->waitForUnit("samba-nmbd");
$server->waitForUnit("samba.target");
$server->succeed("mkdir -p /public; echo bar > /public/foo");
$client->start;
$client->waitForUnit("network.target");
$client->waitForUnit("remote-fs.target");
$client->succeed("[[ \$(cat /public/foo) = bar ]]");
'';
})