Functest containers leverage on Python3 instead of python2.
https://mail.python.org/pipermail/python-dev/2018-March/152348.html
Change-Id: I4f148e91259377b4e3b9076621f192a6e00f6009
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit
e38bb1ee4c2a5c2e03ad7af46631da37c5f189ba)
process = subprocess.Popen(cmd_line, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- output = process.stdout.read()
+ output = process.stdout.read().decode("utf-8")
if ('Error loading client' in output or
'Unexpected error' in output):
raise Exception(output)