Mark job as failed when build fails (#1891)

This commit is contained in:
valentinThomazic 2024-03-05 17:57:32 +01:00 committed by GitHub
parent 16bdcda07c
commit fb86e7a5ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ for i in list_of_tests:
else:
metric.add_fail(*col)
if job_test_total == 0:
if re.search("ERROR", log) != None or job_test_total == 0:
metric.fail()
report = rb.Report(f'{job_test_pass}/{job_test_total}')