installs tests, but they rely on paths in source directory

Bug #1323408 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Triaged
High
Unassigned

Bug Description

subunit installs its tests, which is useful - it can be run by autopkgtest.

However, /usr/lib/python2.7/dist-packages/subunit/tests/test_subunit_filter.py:308 relies on the fact that the tests are run from the source tree, as it tries to locate the filters.

I've verified that this can be fixed by simply passing in the right location to filter-subunit. That's not the correct fix though. The only reasonable thing I can think of is to have it check for ../../../filters/filter-subunit first, and if that doesn't exists, falling back to /usr/bin/filter-subunit or ../../../../../../bin/filter-subunit.

Is there any option that seems better?

Revision history for this message
Robert Collins (lifeless) wrote :

its test code, I'm not too worried about clean here, working is the important thing ;)

Changed in subunit:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.