Skip to content

shell-utils: decode output on subprocess error

Fixes python exception when printing output of failed subprocess:

File "/builds/gstreamer/cerbero/cerbero/build/", line 326, in _get_la_deps_from_pc
    ret = shell.check_output(['pkg-config', '--libs-only-l', '--static', pcname], env=env, logfile=self.logfile)
  File "/builds/gstreamer/cerbero/cerbero/utils/", line 176, in check_output
    msg += '\nstderr in logfile {}'.format(
TypeError: can't concat str to bytes

See failed cerbero CI jobs in gstreamer!1244 (merged) for an example of this.

Edited by Tim-Philipp Müller

Merge request reports