Commit 11f117cc authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

regtest: Disable pretty diffs for text files in HTML reports

difflib is entering in an infinite loop with some files, so disable it
for now. We need to either fix that somehow or find a different way to
generate pretty diffs of text files.
parent 3db4cb6f
......@@ -127,8 +127,11 @@ class HTMLPrettyDiffText(HTMLPrettyDiff):
def create_pretty_diff(backend):
if backend.get_diff_ext() == '.diff.png':
return HTMLPrettyDiffImage()
if backend.get_diff_ext() == '.diff':
return HTMLPrettyDiffText()
# Disable pretty diff for Text files for now, since HtmlDiff().make_file() is
# entering in an infinite loop with some files. We need to either fix that somehow or
# find a different way to generate pretty diffs of text files.
#if backend.get_diff_ext() == '.diff':
# return HTMLPrettyDiffText()
return None
class BackendTestResult:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment