Convert suite result into exit code