summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-10-07 09:10:56 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-10-07 10:33:09 -0700
commitcbbda912918bfdcc918eb8526800efe1b1b4192a (patch)
tree31ec9a09a2f2dfd6197997145e84d82f3cd83623
parent425d6d56f5db2294b090f3b8d4aea682844cac35 (diff)
core.py: Fix bug in TestrunResult.__repairFile()
For some reason this code was looking for 12 spaces followed by '}', when it should have been looking for eight paces followed by '}' Tested-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
-rw-r--r--framework/core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/core.py b/framework/core.py
index 02bfcda1c..abf1b904d 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -316,7 +316,7 @@ class TestrunResult:
# 5. Return a file object containing the repaired JSON.
# Each non-terminal test result ends with this line:
- safe_line = 3 * JSONWriter.INDENT * ' ' + '},\n'
+ safe_line = 2 * JSONWriter.INDENT * ' ' + '},\n'
# Search for the last occurence of safe_line.
safe_line_num = None
@@ -333,7 +333,7 @@ class TestrunResult:
lines = lines[0:(safe_line_num + 1)]
# Remove trailing comma.
- lines[-1] = 3 * JSONWriter.INDENT * ' ' + '}\n'
+ lines[-1] = 2 * JSONWriter.INDENT * ' ' + '}\n'
# Close json object.
lines.append(JSONWriter.INDENT * ' ' + '}\n')