[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[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
#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 | Keywords:
Actual Points: | Parent ID: #22301
Points: | Reviewer:
Sponsor: |
-------------------------------+--------------------
When running `run_tests.py` with a current working directory that's not
the top of the stem source tree, it can't find a `tor` binary via a
relative pathname. This prevents `make test-stem` from working in the tor
source tree. (`run_tests.py` seems to mostly work if given a relative
pathname to `tor` when run from the top of the stem source tree.)
{{{
tlyu@arcadia:~/src/tor$ ../stem/run_tests.py --tor ./src/or/tor --all
--log notice --target RUN_ALL
}}}
produces many errors such as
{{{
Starting ./src/or/tor...
failed to start tor: './src/or/tor' doesn't exist
}}}
A workaround is to provide an absolute pathname for the `tor` binary, like
{{{
tlyu@arcadia:~/src/tor$ ../stem/run_tests.py --tor `pwd`/src/or/tor --all
--log notice --target RUN_ALL
}}}
but it would be nice if the relative pathname also worked. (Adapting the
`make test-stem` rule in tor is also a possibility.)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22366>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs