[tor-bugs] #31317 [Core Tor/Stem]: Stop reading ~/.torrc during stem's test_hush_argument

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Aug 1 23:18:42 UTC 2019


#31317: Stop reading ~/.torrc during stem's test_hush_argument
---------------------------+------------------------
 Reporter:  teor           |          Owner:  atagar
     Type:  defect         |         Status:  new
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------
Changes (by teor):

 * owner:  (none) => atagar
 * component:  - Select a component => Core Tor/Stem


Old description:

> In #30102, we put random data in ~/.torrc, which breaks stem's
> test_hush_argument test.
>
> {{{
> ======================================================================
> FAIL: test_hush_argument
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/travis/build/torproject/tor/stem/stem/util/test_tools.py",
> line 152, in <lambda>
>     self.method = lambda test: self.result(test)  # method that can be
> mixed into TestCases
>   File "/home/travis/build/torproject/tor/stem/stem/util/test_tools.py",
> line 225, in result
>     test.fail(self._result.msg)
> AssertionError: Expected '[warn] Failed to parse/validate config: Unknown
> option 'invalid_argument'.  Failing.' to be within 'Aug 01 20:10:11.551
> [warn] Failed to parse/validate config: Unknown option '����QT��
> ~��V���vLҶ�
> ���\��ޠ@qw�F��0v��$5�EJ��hܱd�FӺTm��Oo'.  Failing.
> Aug 01 20:10:11.562 [err] Reading config failed--see warnings above.
> '
> ----------------------------------------------------------------------
> }}}
> https://travis-ci.org/torproject/tor/jobs/566642646#L4609

New description:

 In #30102, we put random data in ~/.torrc, which breaks stem's
 test_hush_argument test.

 {{{
 ======================================================================
 FAIL: test_hush_argument
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/travis/build/torproject/tor/stem/stem/util/test_tools.py",
 line 152, in <lambda>
     self.method = lambda test: self.result(test)  # method that can be
 mixed into TestCases
   File "/home/travis/build/torproject/tor/stem/stem/util/test_tools.py",
 line 225, in result
     test.fail(self._result.msg)
 AssertionError: Expected '[warn] Failed to parse/validate config: Unknown
 option 'invalid_argument'.  Failing.' to be within 'Aug 01 20:10:11.551
 [warn] Failed to parse/validate config: Unknown option '����QT��
 ~��V���vLҶ�
 ���\��ޠ@qw�F��0v��$5�EJ��hܱd�FӺTm��Oo'.  Failing.
 Aug 01 20:10:11.562 [err] Reading config failed--see warnings above.
 '
 ----------------------------------------------------------------------
 }}}
 https://travis-ci.org/torproject/tor/jobs/566642646#L4609

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31317#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list