aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorZhe Sun <31067185+ZheSun88@users.noreply.github.com>2021-10-15 13:22:00 +0300
committerGitHub <noreply@github.com>2021-10-15 13:22:00 +0300
commit28df2308db6d12154f390c9dadaaa3a0ec7d409e (patch)
treef66d0160672d5b86fb36c9b558c2e8fd56c1294a /scripts
parent5d7b07835d8ad24197526ddc25e7c758fa0b9ab8 (diff)
downloadvaadin-framework-28df2308db6d12154f390c9dadaaa3a0ec7d409e.tar.gz
vaadin-framework-28df2308db6d12154f390c9dadaaa3a0ec7d409e.zip
update the failed build checking (#12439) (#12440)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/GenerateBuildTestAndStagingReport.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/GenerateBuildTestAndStagingReport.py b/scripts/GenerateBuildTestAndStagingReport.py
index fb8874543e..791c346f46 100644
--- a/scripts/GenerateBuildTestAndStagingReport.py
+++ b/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))