Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8095b60
)
tests: handle unicode charactes in cli output
55/22455/2
author
Klement Sekera
<ksekera@cisco.com>
Tue, 1 Oct 2019 19:14:34 +0000
(19:14 +0000)
committer
Ole Trøan
<otroan@employees.org>
Tue, 8 Oct 2019 09:03:49 +0000
(09:03 +0000)
Type: fix
Change-Id: Ic4fb53e6d10a1de155a3088be81d53d9efeb0c0f
Signed-off-by: Klement Sekera <ksekera@cisco.com>
test/vpp_papi_provider.py
patch
|
blob
|
history
diff --git
a/test/vpp_papi_provider.py
b/test/vpp_papi_provider.py
index
e77c2ef
..
bc27352
100644
(file)
--- a/
test/vpp_papi_provider.py
+++ b/
test/vpp_papi_provider.py
@@
-358,7
+358,8
@@
class VppPapiProvider(object):
:param cli: CLI to execute
:returns: CLI output
"""
- return cli + "\n" + str(self.cli(cli))
+ return cli + "\n" + self.cli(cli).encode('ascii',
+ errors='backslashreplace')
def want_ip4_arp_events(self, enable_disable=1, ip="0.0.0.0"):
return self.api(self.papi.want_ip4_arp_events,