Skip to content

Commit

Permalink
[FIX] runbot: pass build in error in case of log critical
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Do committed Nov 21, 2024
1 parent 4d7b7ad commit 3e59fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runbot/models/ir_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def create(self, vals_list):
if build.local_state != 'running':
if ir_log['level'].upper() == 'WARNING':
build.local_result = 'warn'
elif ir_log['level'].upper() == 'ERROR':
elif ir_log['level'].upper() in ('ERROR', 'CRITICAL'):
build.local_result = 'ko'
return super().create(vals_list)

Expand Down

0 comments on commit 3e59fdd

Please sign in to comment.