From ecf63d8a823be1d24763b5c69bd2749f7022bcbf Mon Sep 17 00:00:00 2001
From: "guillaum.chanel" <guillaume.chanel@hesge.ch>
Date: Thu, 13 Oct 2022 14:20:32 +0200
Subject: [PATCH] Reinforce severity of code test

---
 test/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test.py b/test/test.py
index 58a6eea..65eaf18 100644
--- a/test/test.py
+++ b/test/test.py
@@ -185,7 +185,7 @@ class Test:
     def _get_exit_code_from_stdout(self, stdout: str) -> int:
         # Find line with keyword "code"
         for line in stdout.splitlines():
-            if "code" in line:
+            if "exited with code" in line:
                 # Assumes that exit code is after keyword code and that it is the only digits
                 return int(''.join([c for c in line.split('code')[-1] if c.isdigit()]))
         raise AssertionError('No exit code found')
-- 
GitLab