changed exit codes on post chaos alerts and post_scenario failure (#592)

Signed-off-by: Tullio Sebastiani <tsebasti@redhat.com>
This commit is contained in:
Tullio Sebastiani
2024-03-07 16:31:55 +01:00
committed by GitHub
parent fac7c3c6fb
commit 606fb60811

View File

@@ -446,13 +446,13 @@ def main(cfg):
if post_critical_alerts > 0:
logging.error("Critical alerts are firing, please check; exiting")
sys.exit(1)
sys.exit(2)
if failed_post_scenarios:
logging.error(
"Post scenarios are still failing at the end of all iterations"
)
sys.exit(1)
sys.exit(2)
logging.info(
"Successfully finished running Kraken. UUID for the run: "