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
/
basic.py
diff --git
a/test/integration/basic.py
b/test/integration/basic.py
index
1764209
..
b936e72
100755
(executable)
--- a/
test/integration/basic.py
+++ b/
test/integration/basic.py
@@
-12,16
+12,8
@@
from testlib import check
def init(ctx: Test) -> Tinc:
"""Initialize new test nodes."""
def init(ctx: Test) -> Tinc:
"""Initialize new test nodes."""
- node = ctx.node()
+ node = ctx.node(
init=f"set Sandbox {SANDBOX_LEVEL}"
)
node.add_script(Script.TINC_UP)
node.add_script(Script.TINC_UP)
- stdin = f"""
- init {node}
- set Address localhost
- set Port 0
- set DeviceType dummy
- set Sandbox {SANDBOX_LEVEL}
- """
- node.cmd(stdin=stdin)
return node
return node
@@
-40,7
+32,7
@@
def test(ctx: Test, *flags: str) -> None:
node.cmd("stop")
log.info("checking tincd exit code")
node.cmd("stop")
log.info("checking tincd exit code")
- check.
equals(0,
tincd.wait())
+ check.
success(
tincd.wait())
with Test("foreground mode") as context:
with Test("foreground mode") as context: