summaryrefslogtreecommitdiff
path: root/buildstream/plugin.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-03 23:02:47 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-03 23:04:56 -0400
commit9834da72329b6d2fc7d5db357a3c836e4710cab5 (patch)
tree60b91b11d6422ba40d3db812eec1ebdf67d1e51a /buildstream/plugin.py
parent84c871b8a60f7826392c35a36735ac52df29ef74 (diff)
downloadbuildstream-9834da72329b6d2fc7d5db357a3c836e4710cab5.tar.gz
plugin.py: Removed special case for test cases
Turns out this doesnt work once you try to actually run the full buildstream in a test case (in foreground it screws with other parsing, in background it fails in the test context with a strange error).
Diffstat (limited to 'buildstream/plugin.py')
-rw-r--r--buildstream/plugin.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/plugin.py b/buildstream/plugin.py
index ae5f4018f..775215462 100644
--- a/buildstream/plugin.py
+++ b/buildstream/plugin.py
@@ -526,9 +526,7 @@ class Plugin():
#
@contextmanager
def _output_file(self):
- if 'BST_TEST_SUITE' in os.environ:
- yield sys.stdout
- elif not self.__log:
+ if not self.__log:
with open(os.devnull, "w") as output:
yield output
else: