zuul/tests
Tobias Henkel 3d9f47be1d
Properly close streams
When running test cases in the debugger it spits out resource warnings
about non-closed streams [1]. Explicitly closing the streams of the
subprocesses and log streamer fixes this warning. Maybe this even
solves the memory leak we're currently seeing in the executors.

[1] Trace:
/zuul/executor/server.py:1894: ResourceWarning: unclosed file <_io.BufferedReader name=60>
  self.proc = None
ResourceWarning: Enable tracemalloc to get the object allocation traceback

/zuul/executor/server.py:124: ResourceWarning: unclosed file <_io.BufferedReader name=11>
  stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
ResourceWarning: Enable tracemalloc to get the object allocation traceback

Change-Id: I65f191dc2e50f9c84f5bf6a3967d768d7ebe6b04
2019-02-03 17:16:44 +01:00
..
fixtures Add provides/requires support 2019-01-30 14:07:42 -08:00
nodepool Set relative priority of node requests 2018-11-30 12:50:34 +01:00
remote Merge "Convert zuul_return into action plugin" 2019-01-18 20:37:11 +00:00
unit Properly close streams 2019-02-03 17:16:44 +01:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Add provides/requires support 2019-01-30 14:07:42 -08:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fakegithub.py Use combined status for Github status checks 2018-12-07 09:17:03 +01:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00