Просмотр исходного кода

update the failed build checking (#12439)

tags/7.7.28
Zhe Sun 2 лет назад
Родитель
Сommit
233dba1288
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3
    1
      scripts/GenerateBuildTestAndStagingReport.py

+ 3
- 1
scripts/GenerateBuildTestAndStagingReport.py Просмотреть файл

@@ -47,7 +47,9 @@ def getTestStatusHtml():
return createTableRow(traffic_light.format(color="black"), "Test status: unable to retrieve status of tests")
else:
test_failures_json = test_failures_request.json()
if test_failures_json["count"] == 0:
# nowadays the responds doesn't contain count keyword when the build is successful
# while count word can be found when build fails
if "count" not in test_failures_json:
return createTableRow(traffic_light.format(color="green"), "Test status: all tests passing")
else:
return createTableRow(traffic_light.format(color="red"), "Test status: there are " + str(test_failures_json["count"]) + " failing tests, <a href={}>check the build report</a>".format(buildResultUrl))

Загрузка…
Отмена
Сохранить