[tahoe-lafs-trac-stream] [tahoe-lafs] #1576: support running tests for an installed version without causing allmydata.test.test_runner.BinTahoe.test_the_right_code to fail
tahoe-lafs
trac at tahoe-lafs.org
Wed Nov 2 18:08:07 UTC 2011
#1576: support running tests for an installed version without causing
allmydata.test.test_runner.BinTahoe.test_the_right_code to fail
----------------------------+---------------------------
Reporter: davidsarah | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: undecided
Component: code | Version: 1.9.0b1
Keywords: test packaging | Launchpad Bug:
----------------------------+---------------------------
The intended way to run tests for an OS package-manager-installed copy of
Tahoe-LAFS is {{{tahoe debug trial}}} (which uses the installed
{{{tahoe}}} script on the PATH).
This fails with the following error:
{{{
[FAIL]
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/allmydata/test/test_runner.py", line
119, in test_the_right_code
self._check_right_code(srcfile)
File "/usr/lib/pymodules/python2.7/allmydata/test/test_runner.py", line
116, in _check_right_code
self.fail(msg)
twisted.trial.unittest.FailTest: We seem to be testing the code at
'/usr/lib/pymodules',
(according to the source filename
'/usr/lib/pymodules/python2.7/allmydata/__init__.pyc'),
but expected to be testing the code at '/home/eutopia'.
Please run the tests from the root of the Tahoe-LAFS distribution.
allmydata.test.test_runner.BinTahoe.test_the_right_code
}}}
because that test doesn't know where the code is supposed to be located.
It is OK for the test to be skipped in this case.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1576>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list