aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-17 01:53:47 +0200
committerOle Trøan <otroan@employees.org>2019-10-17 17:20:24 +0000
commit45ec5708ff90d034d4eb7f3d6595b8009b45e093 (patch)
tree7e3bc3e1a34160d0fe6573e7b0657cf6e7dbaf4d /test
parentc30318da220953610820a2e7cd957da7046eaf4b (diff)
vppinfra: test support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Id1794f38fcb776ded9b769141f5f47d7be75f247
Diffstat (limited to 'test')
-rw-r--r--test/framework.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/framework.py b/test/framework.py
index c1bfaa7630f..2afa64cf42e 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -159,7 +159,8 @@ def pump_output(testclass):
if testclass.vpp.stdout.fileno() in readable:
read = os.read(testclass.vpp.stdout.fileno(), 102400)
if len(read) > 0:
- split = read.splitlines(True)
+ split = read.decode('ascii',
+ errors='backslashreplace').splitlines(True)
if len(stdout_fragment) > 0:
split[0] = "%s%s" % (stdout_fragment, split[0])
if len(split) > 0 and split[-1].endswith("\n"):