setup: find a "bin/tahoe" executable to test based on allmydata.__file__ instead...
authorZooko O'Whielacronx <zooko@zooko.com>
Sat, 24 Jan 2009 01:34:37 +0000 (18:34 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Sat, 24 Jan 2009 01:34:37 +0000 (18:34 -0700)
commit3e4450cf3f001cbd64e4dc73bc170d585501756c
tree562a446a9994368ecb2307f7bdb3f3debff82ee2
parent66b8190fb1892e1548672e9aafc59ef440a66815
setup: find a "bin/tahoe" executable to test based on allmydata.__file__ instead of based on the CWD
This means that the tests still work if you are executing them from a CWD other than the src dir -- *if* the "bin/tahoe" is found at os.path.dirname(os.path.dirname(os.path.dirname(allmydata.__file__))).
If no file is found at that location, then just skip the tests of executing the "tahoe" executable, because we don't want to accidentally run those tests against an executable from a different version of tahoe.
src/allmydata/test/test_runner.py