Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #22366

Closed
Open
Opened May 24, 2017 by Taylor Yu@catalyst

run_tests.py can't find tor via relative pathname if cwd not the top of the stem tree

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.)

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#22366