acl-plugin: fix acl plugin test failing sporadically (VPP-898) 95/7395/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 3 Jul 2017 14:25:37 +0000 (16:25 +0200)
committerNeale Ranns <nranns@cisco.com>
Tue, 4 Jul 2017 07:30:26 +0000 (07:30 +0000)
commitbe055bd719559fc79d8a4c06479497c4c0bfae93
treeec73546a39371553110e837055e0fd40418ac820
parent860af5ad2b023f9c57d622a7a9d3bd0099e480b1
acl-plugin: fix acl plugin test failing sporadically (VPP-898)

The "acl_plugin" tests has one of the tests sporadically fail with the following traceback:

r.reply.decode().rstrip('\x00') UnicodeDecodeError: 'ascii' codec can't decode byte
0xd8 in position 20666: ordinal not in range(128)

This occurs in the newly added "show acl-plugin table" debug CLI.
This CLI has only the numeric outputs, so the conclusion is that it is
the incorrect termination (trailing zero) that might be most probably
causing it. The other acl-plugins show commands also
lack the zero-termination termination, so fix all of them.
The particularity of this command vs. the other acl-plugin debug CLIs
is that the accumulator is freed and allocated multiple times,
this might explain the issue is not seen with them.

Change-Id: I87b5c0d6152fbebcae9c7d0ce97155c1ae6666db
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c