Remove docker debug output polluting the view

With the -D flag present, the only extra output is of type:
time="2015-12-17T10:50:24+01:00" level=debug msg="framesize: 74"
between every single STDOUT line. This shouldn't be needed, as you would
expect the debug flag to influence dox things, not Docker

Change-Id: I224c9e13f5f2a0775afb0ca5f74dd7abf69adc45
This commit is contained in:
Jon Skarpeteig 2015-12-17 13:09:59 +01:00
parent 22e3b4fa0e
commit 32443f48fb
2 changed files with 1 additions and 3 deletions

View File

@ -82,8 +82,6 @@ class Runner(object):
def _docker_cmd(self, *args):
base_docker = ['docker']
if self.args.debug:
base_docker.append('-D')
try:
self._run_shell_command(base_docker + list(args))
except Exception as e:

View File

@ -105,7 +105,7 @@ class TestRunner(base.TestCase):
dr._run_shell_command = mock.MagicMock()
dr._docker_cmd("version")
dr._run_shell_command.assert_called_with(
['docker', '-D', 'version']
['docker', 'version']
)
dr = doxrunner.Runner(argparse.Namespace(user_map=None,