Skip to content
Snippets Groups Projects
Commit 967f766e authored by Damian Johnson's avatar Damian Johnson
Browse files

Integ test fails with a malformed default torrc

Great catch from teor...

  https://trac.torproject.org/projects/tor/ticket/31317

Reproed by creating a mangled default torrc (/usr/local/etc/tor/torrc).
parent 8ca077ae
Branches
Tags
No related merge requests found
......@@ -155,10 +155,10 @@ class TestProcess(unittest.TestCase):
Check that we only get warnings and errors when running 'tor --hush'.
"""
output = run_tor(tor_cmd, '--hush', '--invalid_argument', expect_failure = True)
output = run_tor(tor_cmd, '--hush', '--invalid_argument', with_torrc = True, expect_failure = True)
assert_in("[warn] Command-line option '--invalid_argument' with no value. Failing.", output)
output = run_tor(tor_cmd, '--hush', '--invalid_argument', 'true', expect_failure = True)
output = run_tor(tor_cmd, '--hush', '--invalid_argument', 'true', with_torrc = True, expect_failure = True)
assert_in("[warn] Failed to parse/validate config: Unknown option 'invalid_argument'. Failing.", output)
@asynchronous
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment