aboutsummaryrefslogtreecommitdiff
path: root/prettier.py
diff options
context:
space:
mode:
Diffstat (limited to 'prettier.py')
-rw-r--r--prettier.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/prettier.py b/prettier.py
index 1b30db1..aaf19b3 100644
--- a/prettier.py
+++ b/prettier.py
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/06 18:13:52 by cacharle #+# #+# #
-# Updated: 2020/02/06 18:13:54 by cacharle ### ########.fr #
+# Updated: 2020/04/02 19:55:29 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -56,12 +56,12 @@ def parse(options):
for line in sys.stdin:
sys.stdout.flush()
line = line.strip()
- if line == "OK":
- logs["ok"] += 1
- print(green("."), end="")
- continue
- m = re.search("^FAIL/(OUTPUT|RETURN|SEGFAULT)<>ARGS:(.*)<>EXPECTED:(.*)<>ACTUAL:(.*)$", line)
+ m = re.search("^FAIL/(OUTPUT|RETURN|SEGFAULT|TIMEOUT)<>ARGS:(.*)<>EXPECTED:(.*)<>ACTUAL:(.*)$", line)
if m is None:
+ if line == "OK":
+ logs["ok"] += 1
+ print(green("."), end="")
+ continue
print(line)
print("PARSING ERROR")
continue