From 95d807ab6120ecb433f9e0479cf23908d5b5e45e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 12 Apr 2020 14:28:59 +0100 Subject: [PATCH] ci: Count 'ERROR' codes as failures Otherwise they'll be dropped from our reports. --- .gitlab-ci/meson-html-report.py | 40 ++++++++++++++++---------------- .gitlab-ci/meson-junit-report.py | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci/meson-html-report.py b/.gitlab-ci/meson-html-report.py index f0bb35728b..d670f41362 100755 --- a/.gitlab-ci/meson-html-report.py +++ b/.gitlab-ci/meson-html-report.py @@ -174,7 +174,7 @@ ul.images li {

Failures

-

Skipped

- - -

Passed

- -

Expected failures

+ +

Skipped

+ + +

Passed

+
@@ -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', 'UNEXPECTEDPASS', 'TIMEOUT']: + if unit['result'] in ['FAIL', 'UNEXPECTEDPASS', 'TIMEOUT', 'ERROR',]: return True return False diff --git a/.gitlab-ci/meson-junit-report.py b/.gitlab-ci/meson-junit-report.py index f63c82eb36..dd0b13897c 100755 --- a/.gitlab-ci/meson-junit-report.py +++ b/.gitlab-ci/meson-junit-report.py @@ -70,7 +70,7 @@ for name, units in suites.items(): print('Processing suite {} (units: {})'.format(name, len(units))) def if_failed(unit): - if unit['result'] in ['FAIL', 'UNEXPECTEDPASS', 'TIMEOUT']: + if unit['result'] in ['ERROR', 'FAIL', 'UNEXPECTEDPASS', 'TIMEOUT']: return True return False