validate: launcher: Remove redundant check
authorRamiro Polla <ramiro.polla@collabora.co.uk>
Fri, 16 Jan 2015 18:54:56 +0000 (19:54 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 5 Feb 2015 14:18:37 +0000 (15:18 +0100)
self.out is always available when _get_captured() is called.

Patch 4/5 to move logfile handling out of Reporter and into Test.

validate/launcher/reporters.py

index 842b852..7b15700 100644 (file)
@@ -159,7 +159,7 @@ class XunitReporter(Reporter):
 
     def _get_captured(self, test):
         captured = ""
-        if self.out and not self.options.redirect_logs:
+        if not self.options.redirect_logs:
             self.out.seek(0)
             value = self.out.read()
             if value: