test.integ.installation expects cwd to be the top of the stem source tree
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.)