[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 19:42:52 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 catalyst):
Oh! After experimenting a bit more, this bug also seems dependent on the
lack of a system `tor` binary in `$PATH` for reasons I don't yet
understand.
{{{
tlyu at arcadia:~/src/tor$ PATH=/tmp/tor-stem:$PATH ../stem/run_tests.py
--tor ./src/or/tor --all --log notice
}}}
successfully finds `./src/or/tor` and runs it.
{{{
Starting ./src/or/tor...
May 24 15:36:09.928 [notice] Tor 0.3.1.1-alpha (git-af98b862a51c001e)
running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.2g, Zlib 1.2.8,
Liblzma N/A, and Libzstd N/A.
}}}
`/tmp/tor-stem/tor` is a shell script that just runs `kill -ABRT $$`, so
it's clearly not producing the quoted output. Of course, now
`test.integ.version` fails because of the unusual execution properties of
the "system" `tor`.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22366#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list