aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-10-01 19:14:34 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-22 11:11:45 +0000
commit3bc9d5551a43984a9409c47f0e3c5299d894472e (patch)
tree396b980b4ff8bcdee00db13195961908d0b26e8c
parent116e05f57f073fbecae33b7a0021306a27aa652b (diff)
tests: handle unicode charactes in cli output
Type: fix Change-Id: Ic4fb53e6d10a1de155a3088be81d53d9efeb0c0f Signed-off-by: Klement Sekera <ksekera@cisco.com> (cherry picked from commit 6be55648334308d4eaa4a02143b968720bb62078)
-rw-r--r--test/vpp_papi_provider.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index f9bb470ec1d..a3da1ae3db4 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -362,7 +362,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,