X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=test%2Fintegration%2Fcmd_dump.py;fp=test%2Fintegration%2Fcmd_dump.py;h=89560166366528970a918981570a1500aafb2ebe;hp=103ac62d06811307737e83eaa6be06c81651ab36;hb=c8402791b82947c49ba1d04f855dab04191607ca;hpb=66eb66ec8f872db3dc12e1d01101772918d69a4a diff --git a/test/integration/cmd_dump.py b/test/integration/cmd_dump.py index 103ac62d..89560166 100755 --- a/test/integration/cmd_dump.py +++ b/test/integration/cmd_dump.py @@ -31,20 +31,6 @@ ONLINE_REQUESTS = ( ) -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: @@ -159,8 +145,7 @@ def run_connected_tests(foo: Tinc, bar: Tinc) -> None: 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: