diff --git a/.travis.yml b/.travis.yml index ac1ca6a7..c749f7fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ sudo: required env: - - IMAGE=ubuntu:xenial - IMAGE=ubuntu:artful - - IMAGE=ubuntu-daily:bionic + - IMAGE=ubuntu:bionic language: bash diff --git a/subiquitycore/utils.py b/subiquitycore/utils.py index ec735f57..42fbba0f 100644 --- a/subiquitycore/utils.py +++ b/subiquitycore/utils.py @@ -103,7 +103,7 @@ def _clean_env(env): return env -def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', env=None, **kw): +def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', errors='replace', env=None, **kw): """A wrapper around subprocess.run with logging and different defaults. We never ever want a subprocess to inherit our file descriptors! @@ -121,7 +121,7 @@ def run_command(cmd, *, input=None, stdout=subprocess.PIPE, stderr=subprocess.PI return cp -def start_command(cmd, *, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', env=None, **kw): +def start_command(cmd, *, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding='utf-8', errors='replace', env=None, **kw): """A wrapper around subprocess.Popen with logging and different defaults. We never ever want a subprocess to inherit our file descriptors!