Disable debug logs for image builds

Logs emitted when building via the tox environments can exceed the
maximum length supported by subunit [1], causing the following message:

Length too long: <length>

This change disables debug logging in these tox environments to reduce
the length of the output.

[1]
8cdd703980/python/subunit/v2.py (L208)

Change-Id: Icb5793a8ea58edafe2f3a249eb1da7d4ae2e395f
This commit is contained in:
Mark Goddard 2018-09-21 12:29:40 +01:00
parent 98276e8ed8
commit 43ed1168d7

View File

@ -40,7 +40,7 @@ class BuildTest(object):
if self.threads < 4: if self.threads < 4:
self.threads = 4 self.threads = 4
self.build_args = [__name__, "--debug", '--threads', str(self.threads)] self.build_args = [__name__, '--threads', str(self.threads)]
@testtools.skipUnless(os.environ.get('DOCKER_BUILD_TEST'), @testtools.skipUnless(os.environ.get('DOCKER_BUILD_TEST'),
'Skip the docker build test') 'Skip the docker build test')