Don't truncate sh produced logs

By default an uncaught sh exception is nicely formated and printed. This
is great except that it also truncates stdout and stderr. If you rtfs
you discover that you can override this behavior by setting the
_truncate_exc flag on commands to False.

Do this so that we can get complete process output for debugging.

Change-Id: Ibae19ac891ad7978a5bd128626adaa35a1c354e6
This commit is contained in:
Clark Boylan 2018-07-20 18:29:20 -07:00
parent ea266224d7
commit 7d00b4a5b1
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class ContainerContext(object):
host=os.path.expanduser('~/.config/pip/pip.conf'),
guest='/root/.config/pip/pip.conf'))
self.run_id = self.create()
self._cont = sh.docker.bake("exec", self.run_id, "sh", "-c")
self._cont = sh.docker.bake("exec", self.run_id, "sh", "-c",
_truncate_exc=False)
def create(self):
vargs = [