git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/bind: port test to python
commit44e6c84ea1640e1fe282aa5ce9de710414c744ec authorMarijan <marijan.petricevic@hotmail.de> dateTue 5 Nov 2019, 13:18 (7 years ago) parentdb54622
1 file changed+4−4
nixos/tests/bind.nix+4−4
nixos/tests/bind.nix+4−4
@@ -1,4 +1,4 @@
1−import ./make-test.nix {
1+import ./make-test-python.nix {
22 name = "bind";
33
44 machine = { pkgs, lib, ... }: {
@@ -20,8 +20,8 @@ import ./make-test.nix {
2020 };
2121
2222 testScript = ''
23− $machine->waitForUnit('bind.service');
24− $machine->waitForOpenPort(53);
25− $machine->succeed('host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org');
23+ machine.wait_for_unit("bind.service")
24+ machine.wait_for_open_port(53)
25+ machine.succeed("host 192.168.0.1 127.0.0.1 | grep -qF ns.example.org")
2626 '';
2727}