Bug 1591464 - In |mach test-info tests| display bugzilla info sooner; r=bc

Very minor enhancement to 'mach test-info tests <test-name>' such that the list of
related bugs is displayed earlier, before any of the ActiveData queries, so that
all the quickly-retrieved info is displayed before the annoying ActiveData delay.
I had to split set_test_name() into two parts since the first part is required
for the bugzilla report; the second part is not required for bugzilla and involves
a lengthy ActiveData query.

Differential Revision: https://phabricator.services.mozilla.com/D52087

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Brown 2019-11-07 15:32:31 +00:00
Родитель cb87085ec4
Коммит a52ff2f347
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -735,14 +735,15 @@ class TestInfoCommand(MachCommandBase):
print("'%s' is too short for a test name!" % self.test_name)
continue
self.set_test_name()
if self.show_bugs:
self.report_bugs()
self.set_activedata_test_name()
if self.show_results:
self.report_test_results()
if self.show_durations:
self.report_test_durations()
if self.show_tasks:
self.report_test_tasks()
if self.show_bugs:
self.report_bugs()
def find_in_hg_or_git(self, test_name):
if self._hg:
@ -772,7 +773,6 @@ class TestInfoCommand(MachCommandBase):
# queries based on the specified test name.
import posixpath
import re
# full_test_name is full path to file in hg (or git)
self.full_test_name = None
@ -829,6 +829,9 @@ class TestInfoCommand(MachCommandBase):
# no need to determine ActiveData name if not querying
return
def set_activedata_test_name(self):
import re
# activedata_test_name is name in ActiveData
self.activedata_test_name = None
simple_names = [