Bug 1001099 - Don't run tests if pulse data doesn't contain necessary details

This commit is contained in:
Jonathan Griffin 2014-04-25 09:26:52 -07:00
Родитель fd22155787
Коммит 78ad7518a8
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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)