Opened 3 months ago

Closed 2 months ago

#31317 closed defect (fixed)

Stop reading ~/.torrc during stem's test_hush_argument

Reported by: teor Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by teor)

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

Child Tickets

Change History (2)

comment:1 Changed 3 months ago by teor

Component: - Select a componentCore Tor/Stem
Description: modified (diff)
Owner: set to atagar

comment:2 Changed 2 months ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.