зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1572794 - Add 'flavor' and 'subsuite' args for 'mach test-info report'; r=jmaher
These were already supported by the test resolver; let's use them. More tweaks planned... Differential Revision: https://phabricator.services.mozilla.com/D41414 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
be47400d60
Коммит
9207b87bbb
|
@ -1158,6 +1158,10 @@ class TestInfoCommand(MachCommandBase):
|
|||
@CommandArgument('--components', default=None,
|
||||
help='Comma-separated list of Bugzilla components.'
|
||||
' eg. Testing::General,Core::WebVR')
|
||||
@CommandArgument('--flavor',
|
||||
help='Limit results to tests of the specified flavor (eg. "xpcshell").')
|
||||
@CommandArgument('--subsuite',
|
||||
help='Limit results to tests of the specified subsuite (eg. "devtools").')
|
||||
@CommandArgument('paths', nargs=argparse.REMAINDER,
|
||||
help='File system paths of interest.')
|
||||
@CommandArgument('--show-manifests', action='store_true',
|
||||
|
@ -1173,7 +1177,8 @@ class TestInfoCommand(MachCommandBase):
|
|||
'for filter-values.')
|
||||
@CommandArgument('--output-file',
|
||||
help='Path to report file.')
|
||||
def test_report(self, components, paths, show_manifests, show_tests,
|
||||
def test_report(self, components, flavor, subsuite, paths,
|
||||
show_manifests, show_tests,
|
||||
filter_values, filter_keys, output_file):
|
||||
import mozpack.path as mozpath
|
||||
from moztest.resolve import TestResolver
|
||||
|
@ -1208,7 +1213,8 @@ class TestInfoCommand(MachCommandBase):
|
|||
|
||||
print("Finding tests...")
|
||||
resolver = self._spawn(TestResolver)
|
||||
tests = list(resolver.resolve_tests(paths=paths))
|
||||
tests = list(resolver.resolve_tests(paths=paths, flavor=flavor,
|
||||
subsuite=subsuite))
|
||||
if show_manifests:
|
||||
by_component['manifests'] = {}
|
||||
manifest_paths = set()
|
||||
|
|
Загрузка…
Ссылка в новой задаче