Skip to content

Commit 5d50797

Browse files
committed
ci: handle checpatch warnings as errors
Fail CI if we have both errors and warnings. Signed-off-by: Anas Nashif <[email protected]>
1 parent d7ac0e0 commit 5d50797

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/ci/check_compliance.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,7 @@ def run(self):
213213

214214
except subprocess.CalledProcessError as ex:
215215
output = ex.output.decode("utf-8")
216-
if re.search("[1-9][0-9]* errors,", output):
217-
self.add_failure(output)
218-
else:
219-
# No errors found, but warnings. Show them.
220-
self.add_info(output)
216+
self.add_failure(output)
221217

222218

223219
class KconfigCheck(ComplianceTest):

0 commit comments

Comments
 (0)