nixos/ndppd: port test to python test-driver

This commit is contained in:
Maximilian Bosch 2019-11-27 20:22:16 +01:00
parent d35bd2f7b8
commit a9a271792d
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import ./make-test.nix ({ pkgs, lib, ...} : { import ./make-test-python.nix ({ pkgs, lib, ...} : {
name = "ndppd"; name = "ndppd";
meta = with pkgs.stdenv.lib.maintainers; { meta = with pkgs.stdenv.lib.maintainers; {
maintainers = [ fpletz ]; maintainers = [ fpletz ];
@ -52,9 +52,9 @@ import ./make-test.nix ({ pkgs, lib, ...} : {
}; };
testScript = '' testScript = ''
startAll; start_all()
$server->waitForUnit("multi-user.target"); server.wait_for_unit("multi-user.target")
$upstream->waitForUnit("multi-user.target"); upstream.wait_for_unit("multi-user.target")
$upstream->waitUntilSucceeds("ping -c5 fd42::2"); upstream.wait_until_succeeds("ping -c5 fd42::2")
''; '';
}) })