diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-02 20:51:30 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-02 20:52:13 +0200 |
| commit | 25d81fe88c7e9aebe011b7b625b4eb7d31936591 (patch) | |
| tree | 9990ee49ac9ad31ea2b6eb45dad285cc398e7e0c /prettier.py | |
| parent | 63e9453f1543cfa98dcb9d2b5078bc919f90d9a9 (diff) | |
| download | ft_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.py | 12 |
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 |
