Commit 3d5751d0 authored by George Kadianakis's avatar George Kadianakis
Browse files

Fix Chutney after recent Tor changes.

Tor commits 1588767e and 4382e977 broke Chutney and we fix them here.
See tpo/core/tor#40204 .
parent 7b203b0b
......@@ -344,6 +344,9 @@ def get_tor_version(tor):
tor_version = run_tor(cmdline)
# Keep only the first line of the output: since #32102 a bunch of more
# lines have been added to --version and we only care about the first
tor_version = tor_version.split("\n")[0]
# clean it up a bit
tor_version = tor_version.strip()
tor_version = tor_version.replace("version ", "")
......@@ -767,9 +770,9 @@ class LocalNodeBuilder(NodeBuilder):
"-f", torrc,
"--orport", "1",
"--datadirectory", datadir,
stdouterr = run_tor(cmdline)
fingerprint = "".join((stdouterr.rstrip().split('\n')[-1]).split()[1:])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment