Open Bug 1148404 Opened 5 years ago

[manifestparser] remove assumption that test objects need to have a path

Categories

(Testing :: Mozbase, defect)

defect
Not set

Tracking

(Not tracked)

People

(Reporter: ahal, Unassigned)

Details

manifestparser currently requires tests to have a 'path' and 'relpath' attribute:
https://dxr.mozilla.org/mozilla-central/source/testing/mozbase/manifestparser/manifestparser/manifestparser.py#153

These are helpful for most cases, but not for all harnesses. E.g a reftest is two paths and a comparison operator. Other suites like marionette (and all python unittest based harnesses) might not care about 'path' since the id is [filename.ClassName.method_name].

The test object sections should allow any arbitrary string and harnesses should have the ability to supply a validation callback to catch invalid test id's (with the default validation still being os.path.isfile).
You need to log in before you can comment on or make changes to this bug.