[tor-bugs] #13904 [Stem]: unit tests do hang

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Dec 6 22:57:16 UTC 2014


#13904: unit tests do hang
------------------------+--------------------
     Reporter:  toralf  |      Owner:  atagar
         Type:  defect  |     Status:  closed
     Priority:  normal  |  Milestone:
    Component:  Stem    |    Version:
   Resolution:  fixed   |   Keywords:
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------
Changes (by atagar):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 Great, thanks!

 {{{
   [RUN_PTRACE] test_get_connections
 (test.integ.util.connection.TestConnection) ... ERROR
   [RUN_PTRACE] test_connections (test.integ.util.proc.TestProc) ... ERROR
   [RUN_PTRACE] test_pid_by_port (test.integ.util.system.TestSystem) ...
 FAIL
   [RUN_PTRACE] test_pid_by_port_lsof (test.integ.util.system.TestSystem)
 ... ERROR
   [RUN_PTRACE] test_pid_by_port_netstat
 (test.integ.util.system.TestSystem) ... ERROR
  * ERROR: net-libs/stem-1.2.2_p20141207::toralf failed (test phase):
 }}}

 Interesting, but in looking at the earlier output I suppose this shouldn't
 be surprising...

 {{{
 ======================================================================
 ERROR: test_get_connections
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/var/tmp/portage/net-
 libs/stem-1.2.2_p20141206/work/stem-1.2.2_p20141206/test/integ/util/connection.py",
 line 27, in test_get_connections
     connections = get_connections(resolver, process_pid = tor_pid)
   File "/var/tmp/portage/net-
 libs/stem-1.2.2_p20141206/work/stem-1.2.2_p20141206/stem/util/connection.py",
 line 178, in get_connections
     return [Connection(*conn) for conn in
 stem.util.proc.connections(process_pid)]
   File "/var/tmp/portage/net-
 libs/stem-1.2.2_p20141206/work/stem-1.2.2_p20141206/stem/util/proc.py",
 line 404, in connections
     raise exc
 IOError: unable to read '/proc/net/tcp': [Errno 13] Permission denied:
 '/proc/net/tcp'
 }}}

 Other errors are due to netstat and lsof being broken, which is
 understandable given the hardening. If you have an 'is this system
 hardened' check then we can add a clause to skip the tests but otherwise
 it sounds like there's no further issues. Feel free to reopen if there's
 anything else!

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


More information about the tor-bugs mailing list