[tor-commits] [stem/master] Target accidently included with early test output
atagar at torproject.org
atagar at torproject.org
Fri Jan 27 17:29:57 UTC 2012
commit 55c3fa6e6bfa90e47f116029a08999fe5cc4ac2a
Author: Damian Johnson <atagar at torproject.org>
Date: Wed Jan 25 09:54:07 2012 -0800
Target accidently included with early test output
When printing errors an earlier change included the target with the errors
listed in the footer. This also changed the errors listed earlier when running
the tests which was a mistake.
---
test/output.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/output.py b/test/output.py
index 89a6cc0..7a69fac 100644
--- a/test/output.py
+++ b/test/output.py
@@ -186,9 +186,9 @@ class ErrorTracker:
def _error_tracker(line_type, line_content):
if line_type in (LineType.FAIL, LineType.ERROR):
if self._category:
- line_content = "[%s] %s" % (self._category, line_content)
-
- self._errors.append(line_content)
+ self._errors.append("[%s] %s" % (self._category, line_content))
+ else:
+ self._errors.append(line_content)
return line_content
More information about the tor-commits
mailing list