)
-def init(ctx: Test) -> Tinc:
- """Initialize a node."""
-
- node = ctx.node()
- stdin = f"""
- init {node}
- set Port 0
- set Address localhost
- set DeviceType dummy
- """
- node.cmd(stdin=stdin)
- return node
-
-
def try_dot(src: str) -> None:
"""Try passing graph source through the dot binary, if it's present."""
try:
def run_tests(ctx: Test) -> None:
"""Run all tests."""
- foo = init(ctx)
- bar = ctx.node()
+ foo, bar = ctx.node(init=True), ctx.node()
log.info("set %s subnets", foo)
for sub in SUBNETS_FOO: