summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2015-06-04 10:51:36 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2015-06-04 10:51:36 +0200
commit11f117cc71641b89783b207232171f850a2b64ff (patch)
treedfa5ba24e1a114324f4f3526bfdfbe6b69d9575c /regtest
parent3db4cb6f07229e26405bfb512c626a272f6351f5 (diff)
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.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/HTMLReport.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/regtest/HTMLReport.py b/regtest/HTMLReport.py
index 89cb0e1b..f582e74d 100644
--- a/regtest/HTMLReport.py
+++ b/regtest/HTMLReport.py
@@ -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: