[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [stem/master] Target accidently included with early test output



commit 55c3fa6e6bfa90e47f116029a08999fe5cc4ac2a
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
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
     



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits