Fix for test_log_buf to work with python3
authorBrenden Blanco <bblanco@gmail.com>
Thu, 9 Feb 2017 19:11:23 +0000 (11:11 -0800)
committerBrenden Blanco <bblanco@gmail.com>
Thu, 9 Feb 2017 19:11:23 +0000 (11:11 -0800)
commitbc93238dba644da8afbd55dfc9b169d2df309eaa
treeee2fded4f36348f1e8caa8a5c314af41f985bbb8
parent7f1c3b26c23f9f556b2ec5e712a0669a0ea5a99e
Fix for test_log_buf to work with python3

In python3, output needs to be converted from ascii to str before the
"error_msg in str" test will succeed. This change should be backwards
compatible with python2.

Signed-off-by: Brenden Blanco <bblanco@gmail.com>
tests/python/CMakeLists.txt
tests/python/test_bpf_log.py