Bug 1414399 - [mozbuild/moztest] Move mozbuild.testing.TestResolver to moztest.resolve r=gps

The TestMetadata and TestResolver classes aren't technically part of the build
system. The only connection is that they consume some build system output.

The next patch in this series is going to be merging in a bunch of other test
resolving logic from other parts of the tree. Moving this out first allows us
to keep that extra logic out of mozbuild.

MozReview-Commit-ID: 1eq4SjFVCyW
This commit is contained in:
Andrew Halberstadt
2017-11-06 08:41:42 -05:00
parent 059ab04944
commit 2730a80a6b
9 changed files with 301 additions and 289 deletions

View File

@@ -112,7 +112,7 @@ class MachCommands(MachCommandBase):
# which produces output in the format Mozilla infrastructure expects.
# Some tests are run via pytest.
if test_objects is None:
from mozbuild.testing import TestResolver
from moztest.resolve import TestResolver
resolver = self._spawn(TestResolver)
if tests:
# If we were given test paths, try to find tests matching them.