diff options
author | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2019-11-18 18:56:00 +0100 |
---|---|---|
committer | Félix Baylac-Jacqué <felix@alternativebit.fr> | 2019-11-18 18:56:00 +0100 |
commit | fe12d5df42d91955bdc424709bb0589c1f53cdcc (patch) | |
tree | 7eb4cd884a53054217009c662790759821ca987a /nixos/tests/systemd-networkd-wireguard.nix | |
parent | a6934e36534f8a87a78f877eee65c08fa9867ba5 (diff) | |
download | nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar.gz nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar.bz2 nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar.lz nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar.xz nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.tar.zst nixpkgs-fe12d5df42d91955bdc424709bb0589c1f53cdcc.zip |
tests/systemd-networkd-wireguard: migrate to `make-test-python`
Updating `systemd-networkd-wireguard` to use the python test runner. This change was purely syntactic. This migration did not require any semantic change.
Diffstat (limited to 'nixos/tests/systemd-networkd-wireguard.nix')
-rw-r--r-- | nixos/tests/systemd-networkd-wireguard.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nixos/tests/systemd-networkd-wireguard.nix b/nixos/tests/systemd-networkd-wireguard.nix index aa0ac54e796..b83e9c7ce19 100644 --- a/nixos/tests/systemd-networkd-wireguard.nix +++ b/nixos/tests/systemd-networkd-wireguard.nix @@ -45,7 +45,7 @@ let generateNodeConf = { lib, pkgs, config, privkpath, pubk, peerId, nodeId, ... }; }; }; -in import ./make-test.nix ({pkgs, ... }: { +in import ./make-test-python.nix ({pkgs, ... }: { name = "networkd-wireguard"; meta = with pkgs.stdenv.lib.maintainers; { maintainers = [ ninjatrappeur ]; @@ -70,12 +70,12 @@ in import ./make-test.nix ({pkgs, ... }: { in generateNodeConf (attrs // localConf); }; testScript = '' - startAll; - $node1->waitForUnit('systemd-networkd-wait-online.service'); - $node2->waitForUnit('systemd-networkd-wait-online.service'); - $node1->succeed('ping -c 5 10.0.0.2'); - $node2->succeed('ping -c 5 10.0.0.1'); + start_all() + node1.wait_for_unit("systemd-networkd-wait-online.service") + node2.wait_for_unit("systemd-networkd-wait-online.service") + node1.succeed("ping -c 5 10.0.0.2") + node2.succeed("ping -c 5 10.0.0.1") # Is the fwmark set? - $node2->succeed('wg | grep -q 42'); + node2.succeed("wg | grep -q 42") ''; }) |