mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1240767 - Handle incorrect test paths in 'mach robocop'; r=jmaher
This commit is contained in:
parent
5e919e55b0
commit
00ec66c10b
@ -62,6 +62,15 @@ test path(s):
|
||||
Please check spelling and make sure there are mochitests living there.
|
||||
'''.lstrip()
|
||||
|
||||
ROBOCOP_TESTS_NOT_FOUND = '''
|
||||
The robocop command could not find any tests under the following
|
||||
test path(s):
|
||||
|
||||
{}
|
||||
|
||||
Please check spelling and make sure the named tests exist.
|
||||
'''.lstrip()
|
||||
|
||||
NOW_RUNNING = '''
|
||||
######
|
||||
### Now running mochitest-{}.
|
||||
@ -594,6 +603,11 @@ class RobocopCommands(MachCommandBase):
|
||||
tests = list(resolver.resolve_tests(paths=test_paths, cwd=self._mach_context.cwd,
|
||||
flavor='instrumentation', subsuite='robocop'))
|
||||
|
||||
if len(tests) < 1:
|
||||
print(ROBOCOP_TESTS_NOT_FOUND.format('\n'.join(
|
||||
sorted(list(test_paths)))))
|
||||
return 1
|
||||
|
||||
mochitest = self._spawn(MochitestRunner)
|
||||
return mochitest.run_robocop_test(self._mach_context, tests, 'robocop', **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user