run-tests: partial matching does not work for run_django_tests

Bug #1285647 reported by Evan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Engine
Fix Released
Low
Vincent Ladeuil

Bug Description

It's currently not possible to run just the ppa-assigner or ticket_system tests using ./run-tests. This is because it doesn't go through the same globbing/filtering routine as the other tests.

Tags: airline

Related branches

Evan (ev)
Changed in ubuntu-ci-services-itself:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Low
Evan (ev)
tags: added: airline
Revision history for this message
Vincent Ladeuil (vila) wrote :

AFAICS it does go to the same filtering:

$ ./run-tests ppa_assigner --list

ppa_assigner.tests.TestApi.testCopy
ppa_assigner.tests.TestApi.testCopyBadParams
ppa_assigner.tests.TestApi.testFreeNumeric
ppa_assigner.tests.TestApi.testFreeString
ppa_assigner.tests.TestApi.testGetAll
ppa_assigner.tests.TestApi.testGetQuery
ppa_assigner.tests.TestApi.testJSONP
ppa_assigner.tests.TestApi.testPopulateFail
ppa_assigner.tests.TestApi.testPopulateMerge
ppa_assigner.tests.TestApi.testReserve
ppa_assigner.tests.TestApi.testReserveNoFree
ppa_assigner.tests.TestApi.testStatus
ppa_assigner.tests.TestCleaner.testCleaning
ppa_assigner.tests.TestCleaner.testCleaningFailure
ppa_assigner.tests.TestCleaner.testDirtyToClean
ppa_assigner.tests.TestCleaner.testDirtyToCleanFailure
ppa_assigner.tests.TestConcurrency.testReserveConcurrency
ppa_assigner.tests.TestModel.testReserveNoFree
ppa_assigner.tests.TestModel.testReserveTimestamp
ppa_assigner.tests.TestPep8.test_pep8_conformance
ppa_assigner.tests.TestPyflakes.test_pyflakes_conformance

When in doubt about which regexp to use to filter, try:

$ ./run-tests --list

the ticket system test IDs starts with 'ticket' and 'project'

Changed in ubuntu-ci-services-itself:
status: New → Incomplete
Revision history for this message
Chris Johnston (cjohnston) wrote : Re: [Bug 1285647] Re: run-tests: partial matching does not work for run_django_tests

Again, it would be very helpful if I could run all tests for a specific
component just by using the component name. tstrun isn't a logical 'guess'
for the test runner. I shouldn't have to list the tests to figure out how
to run the tests for a component.

Revision history for this message
Vincent Ladeuil (vila) wrote :

> run all tests for a specific component just by using the component name

The test runner only cares about the test IDs which are under user control: the python name space is what matters.

Now, an alternative that has been used in bzr is to define aliases so you could say './run-tests test-runner' and have 'test-runner' translated to '^tstrun' internally, but that's not what this bug is about.

Ursula Junque (ursinha)
Changed in uci-engine:
assignee: nobody → Vincent Ladeuil (vila)
importance: Undecided → Low
status: New → Incomplete
Evan (ev)
no longer affects: ubuntu-ci-services-itself
Vincent Ladeuil (vila)
Changed in uci-engine:
status: Incomplete → In Progress
milestone: none → uce-0
Revision history for this message
Vincent Ladeuil (vila) wrote :

The plan is to prefix the test ids with the component directory.

Vincent Ladeuil (vila)
Changed in uci-engine:
status: In Progress → Fix Committed
Vincent Ladeuil (vila)
Changed in uci-engine:
status: Fix Committed → Fix Released
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.