aboutsummaryrefslogtreecommitdiff
path: root/prettier.py
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-12-09 12:56:41 +0100
committerCharles Cabergs <me@cacharle.xyz>2020-12-09 12:56:41 +0100
commit08d3e239e8870e16571401952db9b9245c2345de (patch)
tree13c36a4ea75df2998ca8a03006eb47d1de8e6738 /prettier.py
parent702390105f4982590b739508df6b7e8b933b0a84 (diff)
downloadlibasm_test-08d3e239e8870e16571401952db9b9245c2345de.tar.gz
libasm_test-08d3e239e8870e16571401952db9b9245c2345de.tar.bz2
libasm_test-08d3e239e8870e16571401952db9b9245c2345de.zip
Added segfault report log with arguments
Diffstat (limited to 'prettier.py')
-rw-r--r--prettier.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/prettier.py b/prettier.py
index 1833a71..04bb04c 100644
--- a/prettier.py
+++ b/prettier.py
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/05 23:04:13 by cacharle #+# #+# #
-# Updated: 2020/05/04 14:44:44 by charles ### ########.fr #
+# Updated: 2020/12/09 12:56:07 by charles ### ########.fr #
# #
# **************************************************************************** #
@@ -45,7 +45,7 @@ def parse():
continue
m = None
if line.find("SEGFAULT") != -1:
- name = line[4:]
+ name = line[4:line.find("with")]
else:
m = re.search("^KO: \[COMPARE\]: (.*): expected: (.*) got: (.*)( with: .*)?$", line)
if m is None:
@@ -65,7 +65,7 @@ def parse():
"type": "SEGFAULT",
"expected": None,
"actual": None,
- "with": None
+ "with": line[line.find("with:") + len("with:"):]
})
else:
l["ko_info"].append({