projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for some device & address variables
[tinc]
/
test
/
integration
/
cmd_keys.py
diff --git
a/test/integration/cmd_keys.py
b/test/integration/cmd_keys.py
index
4520154
..
079a503
100755
(executable)
--- 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
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"
TEST_DATA = b"foo bar baz"
@@
-156,4
+142,4
@@
def run_tests(foo: Tinc) -> None:
with Test("run tests") as context:
with Test("run tests") as context:
- run_tests(
init(context
))
+ run_tests(
context.node(init=True
))