diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2019-11-24 01:36:08 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2019-11-24 01:36:49 +0100 |
commit | b118137d43da0ad48c4aa9a6afd82ff121f59a24 (patch) | |
tree | d05ef1fa3750d625f2001594fd5d0df1a1393b15 /nixos/tests/dovecot.nix | |
parent | c6bcc1e3a39233aed778599b9e702a68700caf71 (diff) |
nixosTests.dovecot: port test to python
Diffstat (limited to 'nixos/tests/dovecot.nix')
-rw-r--r-- | nixos/tests/dovecot.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nixos/tests/dovecot.nix b/nixos/tests/dovecot.nix index 156079d1d585..c19850f418bc 100644 --- a/nixos/tests/dovecot.nix +++ b/nixos/tests/dovecot.nix @@ -1,4 +1,4 @@ -import ./make-test.nix { +import ./make-test-python.nix { name = "dovecot"; machine = { pkgs, ... }: { @@ -66,12 +66,12 @@ import ./make-test.nix { }; testScript = '' - $machine->waitForUnit('postfix.service'); - $machine->waitForUnit('dovecot2.service'); - $machine->succeed('send-testmail'); - $machine->succeed('send-lda'); - $machine->waitUntilFails('[ "$(postqueue -p)" != "Mail queue is empty" ]'); - $machine->succeed('test-imap'); - $machine->succeed('test-pop'); + machine.wait_for_unit("postfix.service") + machine.wait_for_unit("dovecot2.service") + machine.succeed("send-testmail") + machine.succeed("send-lda") + machine.wait_until_fails('[ "$(postqueue -p)" != "Mail queue is empty" ]') + machine.succeed("test-imap") + machine.succeed("test-pop") ''; } |