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_net.py
diff --git
a/test/integration/cmd_net.py
b/test/integration/cmd_net.py
index
d773839
..
887dfd1
100755
(executable)
--- a/
test/integration/cmd_net.py
+++ b/
test/integration/cmd_net.py
@@
-10,17
+10,7
@@
from testlib.test import Test
def init(ctx: Test) -> Tinc:
"""Initialize a node."""
def init(ctx: Test) -> Tinc:
"""Initialize a node."""
-
- node = ctx.node()
- stdin = f"""
- init {node}
- set Port 0
- set Address localhost
- set DeviceType dummy
- set AutoConnect no
- """
- node.cmd(stdin=stdin)
- return node
+ return ctx.node(init="set AutoConnect no")
def test_network(foo: Tinc) -> None:
def test_network(foo: Tinc) -> None: