],
["shfmt", "-d" if DRY else "-w", "-i", "2", "-s", "."],
["black", "--check" if DRY else ".", "."],
- ["pylint", "."],
+ ["pylint", "--disable", "wrong-import-order,unused-import", "."],
["mypy", "--exclude", "build", "."],
["shellcheck", "-x", *glob(".ci/**/*.sh", recursive=True)],
["markflow", "--line-length", "80", "--check" if DRY else "--verbose", ".", ".ci"],
import tempfile
import time
+COOKIE = util.random_string(10)
+
def init(ctx: Test) -> Tinc:
"""Initialize new test nodes."""
)
for code, flags in tincd_flags:
- cookie = util.random_string(10)
- server = node.tincd(*flags, env={"COOKIE": cookie})
+ server = node.tincd(*flags, env={"COOKIE": COOKIE})
if not code:
log.info("waiting for tincd to come up")
env = node[Script.TINC_UP].wait().env
- check.equals(cookie, env["COOKIE"])
+ check.equals(COOKIE, env["COOKIE"])
log.info("stopping tinc")
node.cmd("stop", code=code)