forked from mirrors/nixpkgs
nixos/samba: port test to python
This commit is contained in:
parent
18f9cfa1c0
commit
ece9c41343
|
@ -1,4 +1,4 @@
|
|||
import ./make-test.nix ({ pkgs, ... }:
|
||||
import ./make-test-python.nix ({ pkgs, ... }:
|
||||
|
||||
{
|
||||
name = "samba";
|
||||
|
@ -36,12 +36,12 @@ import ./make-test.nix ({ pkgs, ... }:
|
|||
|
||||
testScript =
|
||||
''
|
||||
$server->start;
|
||||
$server->waitForUnit("samba.target");
|
||||
$server->succeed("mkdir -p /public; echo bar > /public/foo");
|
||||
server.start()
|
||||
server.wait_for_unit("samba.target")
|
||||
server.succeed("mkdir -p /public; echo bar > /public/foo")
|
||||
|
||||
$client->start;
|
||||
$client->waitForUnit("remote-fs.target");
|
||||
$client->succeed("[[ \$(cat /public/foo) = bar ]]");
|
||||
client.start()
|
||||
client.wait_for_unit("remote-fs.target")
|
||||
client.succeed("[[ $(cat /public/foo) = bar ]]")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue