From 75d60f48914b566faf9f47002ad150d1ef72e10b Mon Sep 17 00:00:00 2001 From: ewuerger Date: Thu, 2 Feb 2023 11:48:15 +0100 Subject: [PATCH] feat: Add system exit for failure in ci environments --- capella_rm_bridge/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/capella_rm_bridge/__main__.py b/capella_rm_bridge/__main__.py index 451f1d2..5194d80 100644 --- a/capella_rm_bridge/__main__.py +++ b/capella_rm_bridge/__main__.py @@ -7,6 +7,7 @@ import collections.abc as cabc import logging import pathlib +import sys import typing as t import capellambse @@ -162,6 +163,8 @@ def main( if save_error_log: ERROR_PATH.write_text(error_statement, encoding="utf8") LOGGER.info("Change-errors file %s written.", ERROR_PATH) + + sys.exit(1) else: commit_message = reporter.create_commit_message(snapshot["metadata"]) print(commit_message)