зеркало из https://github.com/mozilla/coversheet.git
Bug 1001099 - Don't run tests if pulse data doesn't contain necessary details
This commit is contained in:
Родитель
fd22155787
Коммит
78ad7518a8
|
@ -95,6 +95,11 @@ class TPSPulseMonitor(PulseBuildMonitor):
|
|||
print json.dumps(builddata)
|
||||
print "================================================================="
|
||||
|
||||
# Don't run tests if some conditions aren't met
|
||||
if not builddata.get('testsurl') or builddata.get('locale') != 'en-US' \
|
||||
or builddata.get('status') != 0:
|
||||
return
|
||||
|
||||
if os.access(self.resultfile, os.F_OK):
|
||||
os.remove(self.resultfile)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче