diff options
author | Marijan <marijan.petricevic@hotmail.de> | 2019-11-05 13:18:45 +0100 |
---|---|---|
committer | Marijan <marijan.petricevic@hotmail.de> | 2019-11-06 12:46:24 +0100 |
commit | 44e6c84ea1640e1fe282aa5ce9de710414c744ec (patch) | |
tree | 17bab4dc7ffc548e68bd73573c85335badccb39e | |
parent | db546221456fd56f058804afeaa65ae2d97a8b08 (diff) |
nixos/bind: port test to python
-rw-r--r-- | nixos/tests/bind.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/bind.nix b/nixos/tests/bind.nix index 1f8c1dc7be40..09917b15a8e0 100644 --- a/nixos/tests/bind.nix +++ b/nixos/tests/bind.nix @@ -1,4 +1,4 @@ -import ./make-test.nix { +import ./make-test-python.nix { name = "bind"; machine = { pkgs, lib, ... }: { @@ -20,8 +20,8 @@ import ./make-test.nix { }; testScript = '' - $machine->waitForUnit('bind.service'); - $machine->waitForOpenPort(53); - $machine->succeed('host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org'); + machine.wait_for_unit("bind.service") + machine.wait_for_open_port(53) + machine.succeed("host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org") ''; } |