aboutsummaryrefslogtreecommitdiff
path: root/prettier.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-02 20:51:30 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-02 20:52:13 +0200
commit25d81fe88c7e9aebe011b7b625b4eb7d31936591 (patch)
tree9990ee49ac9ad31ea2b6eb45dad285cc398e7e0c /prettier.py
parent63e9453f1543cfa98dcb9d2b5078bc919f90d9a9 (diff)
downloadft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.tar.gz
ft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.tar.bz2
ft_printf_test-25d81fe88c7e9aebe011b7b625b4eb7d31936591.zip
Added timeout detection
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