Opened 3 years ago

Closed 3 years ago

#22365 closed defect (fixed)

test.integ.installation expects cwd to be the top of the stem source tree

Reported by: catalyst Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Stem Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: #22301 Points:
Reviewer: Sponsor:

Description

Running run_tests.py from a current working directory that isn't the top of the stem source tree appears to cause test.integ.installation to fail. test.integ.installation does succeed when run from the top of the stem source tree.

It should work when run from the top of the tor source tree, as required by the make test-stem rules in tor. Alternatively, clearly document that the tests only work properly when run from the top of the stem source tree and adjust the make test-stem rules in tor to compensate. (It seems that almost all of the other tests work when run with a working directory outside of the stem source tree, so it would be nice if this one did as well.)

tlyu@arcadia:~/src/tor$ ../stem/run_tests.py --tor `pwd`/src/or/tor --all --log notice --target RUN_ALL --test test.integ.installation

(note that the

--tor `pwd`/src/or/tor`

is needed to work around another issue with relative pathnames)

TESTING FAILED (11 seconds)
  [RUN_NONE] test_sdist (test.integ.installation.TestInstallation) ... FAIL

I can provide more complete logs if needed, but it seems like it should be easy enough to replicate the failure condition. (Please let me know if you're having trouble replicating it.)

Child Tickets

Change History (2)

comment:1 Changed 3 years ago by atagar

Ahhh! I see what I was doing wrong. Got a repro now - thanks for reporting this!

comment:2 Changed 3 years ago by atagar

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.