anchor.diff:        nodes.client2 = node { address4 = "192.168.1.2"; remote = "192.168.1.1"; address6 = "fc00::2"; };
         testScript = { ... }:
           ''
  -          startAll;
  -
  -          # Wait for networking to be configured
  -          $client1->waitForUnit("network.target");
  -          $client2->waitForUnit("network.target");
  -
  -          # Print diagnostic information
  -          $client1->succeed("ip addr >&2");
  -          $client2->succeed("ip addr >&2");
  -
  -          # Test ipv6
  -          $client1->waitUntilSucceeds("ping -c 1 fc00::1");
  -          $client1->waitUntilSucceeds("ping -c 1 fc00::2");
  -
  -          $client2->waitUntilSucceeds("ping -c 1 fc00::1");
  -          $client2->waitUntilSucceeds("ping -c 1 fc00::2");
  +          start_all()
  +
  +          with subtest("Wait for networking to be configured"):
  +              client1.wait_for_unit("network.target")
  +              client2.wait_for_unit("network.target")
  +
  +              # Print diagnostic information
  +              client1.succeed("ip addr >&2")
  +              client2.succeed("ip addr >&2")
  +
  +          with subtest("Test ipv6"):
  +              client1.wait_until_succeeds("ping -c 1 fc00::1")
  +              client1.wait_until_succeeds("ping -c 1 fc00::2")
  +
  +              client2.wait_until_succeeds("ping -c 1 fc00::1")
  +              client2.wait_until_succeeds("ping -c 1 fc00::2")
           '';
       };
       vlan = let
  
positive.code:       nodes.client2 = node "192.168.1.2";
        testScript = { ... }:
          ''
            startAll;
  
            # Wait for networking to be configured
            $client1->waitForUnit("network.target");
            $client2->waitForUnit("network.target");
  
            # Test vlan is setup
            $client1->succeed("ip addr show dev vlan >&2");
            $client2->succeed("ip addr show dev vlan >&2");
          '';
      };
      virtual = {
  
negative.code: # bool: whether to use networkd in the tests
  , networkd }:
  
  with import ../lib/testing-python.nix { inherit system pkgs; };
  with pkgs.lib;
  
  let
  