[gtk/report-fixes: 1/2] ci: Unexpected passes are failures
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/report-fixes: 1/2] ci: Unexpected passes are failures
- Date: Thu, 13 Feb 2020 14:12:46 +0000 (UTC)
commit 70c7660ca8acd12c3659cef35204d952cad5d40f
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Feb 13 13:54:22 2020 +0000
ci: Unexpected passes are failures
List them as such in our reports.
.gitlab-ci/meson-html-report.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci/meson-html-report.py b/.gitlab-ci/meson-html-report.py
index 4ba5fceadf..a7bb16a89b 100755
--- a/.gitlab-ci/meson-html-report.py
+++ b/.gitlab-ci/meson-html-report.py
@@ -214,7 +214,7 @@ ul.images li {
<div class="failures">
<h4><a name="failed">Failed</a></h4>
<ul class="failed">
- {% for failure in suite_result.failures if failure.result == 'FAIL' %}
+ {% for failure in suite_result.failures if failure.result in [ 'FAIL', 'UNEXPECTEDPASS' ] %}
<li><a name="{{ failure.name }}">{{ failure.name }}</a> - result: <span class="result fail">{{
failure.result }}</span><br/>
{% if failure.stdout %}
Output: <pre>{{ failure.stdout }}</pre>
@@ -331,7 +331,7 @@ for name, units in suites.items():
print('Processing {} suite {}:'.format(project_name, suite_name))
def if_failed(unit):
- if unit['result'] in ['FAIL', 'TIMEOUT']:
+ if unit['result'] in ['FAIL', 'UNEXPECTEDPASS', 'TIMEOUT']:
return True
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]