X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=test%2Fintegration%2Fcmd_keys.py;fp=test%2Fintegration%2Fcmd_keys.py;h=079a5036d36c6e8942d6e61c20c3d18a9db09461;hp=4520154ce01081b7863f7f72860b256f3d94e6da;hb=c8402791b82947c49ba1d04f855dab04191607ca;hpb=66eb66ec8f872db3dc12e1d01101772918d69a4a diff --git a/test/integration/cmd_keys.py b/test/integration/cmd_keys.py index 4520154c..079a5036 100755 --- a/test/integration/cmd_keys.py +++ b/test/integration/cmd_keys.py @@ -13,20 +13,6 @@ from testlib.proc import Tinc from testlib.test import Test -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 - - TEST_DATA = b"foo bar baz" @@ -156,4 +142,4 @@ def run_tests(foo: Tinc) -> None: with Test("run tests") as context: - run_tests(init(context)) + run_tests(context.node(init=True))