[tor-bugs] #22366 [Core Tor/Stem]: run_tests.py can't find tor via relative pathname if cwd not the top of the stem tree

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 24 20:00:41 UTC 2017


#22366: run_tests.py can't find tor via relative pathname if cwd not the top of the
stem tree
---------------------------+------------------------
 Reporter:  catalyst       |          Owner:  atagar
     Type:  defect         |         Status:  new
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:                 |  Actual Points:
Parent ID:  #22301         |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+------------------------

Comment (by atagar):

 Still little puzzled but I did manage to get a repro *if* the RELATIVE
 target is invoked. I'll go ahead and fix that and we'll see if it
 addresses the issue for you.

 {{{
 % PATH="/usr/bin" ../stem/run_tests.py --tor ./tor/src/or/tor --all --log
 notice --target RELATIVE
 ======================================================================
                              INITIALISING
 ======================================================================

   checking stem version...                             1.5.4-dev
   checking tor version...                              0.3.1.0-alpha-dev
   checking python version...                           2.7.3
   checking cryptography version...                     1.7.2
   checking pynacl version...                           1.0.1
   checking mock version...                             1.3.0
   checking pyflakes version...                         1.0.0
   checking pycodestyle version...                      2.3.1
   checking for orphaned .pyc files...                  done
   checking for unused tests...                         done
   running pyflakes...                                  done (1.8s)
   running pycodestyle...                               done (6.4s)

 ======================================================================
                               UNIT TESTS
 ======================================================================

 ...

 ======================================================================
                           INTEGRATION TESTS
 ======================================================================

 Setting up a test instance...
   making test directory (/home/atagar/Desktop/stem/test/data)... skipped
   configuring logger (/home/atagar/Desktop/stem/test/data/log)... done
   writing torrc (/home/atagar/Desktop/stem/test/data/torrc)... done
     # configuration for stem integration tests
     DataDirectory ./data
     SocksPort 1112
     DownloadExtraInfo 1
     Log notice stdout
     Log notice file ./data/tor_log
     ControlPort 1111

 Starting ./tor/src/or/tor...

   failed to start tor: './tor/src/or/tor' doesn't exist


 Shutting down tor... done

 TESTING FAILED (10 seconds)

 You can re-run just these tests with:

 }}}

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


More information about the tor-bugs mailing list