Skip to content
Snippets Groups Projects
Commit ecf63d8a authored by guillaum.chanel's avatar guillaum.chanel
Browse files

Reinforce severity of code test

parent 8c7d04c8
No related branches found
No related tags found
No related merge requests found
Pipeline #19862 failed
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment