зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393826 - [python-test] Make sure pytest errors get flagged by treeherder, r=davehunt
This is a quick and dirty hack to get treeherder to show pytest failures. Long term, we might want to investigate using something like pytest-mozlog. But the benefit of this approach is we get to keep pytest's fantastic default log format. MozReview-Commit-ID: Gcsz6z8MeOi --HG-- extra : rebase_source : 00ee7973eadf86c081b548d5e79c48ca951e25a6
This commit is contained in:
Родитель
1fd85edf73
Коммит
eca136fd91
|
@ -205,6 +205,10 @@ class MachCommands(MachCommandBase):
|
|||
if output:
|
||||
file_displayed_test.append(True)
|
||||
|
||||
# Hack to make sure treeherder highlights pytest failures
|
||||
if line.endswith('FAILED'):
|
||||
line = line.replace('FAILED', 'TEST-UNEXPECTED-FAIL')
|
||||
|
||||
_log(line)
|
||||
|
||||
_log(test_path)
|
||||
|
|
Загрузка…
Ссылка в новой задаче