Signed-off-by: Masashi Honma <masashi.honma@xxxxxxxxx> --- tests/hwsim/test_macsec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/hwsim/test_macsec.py b/tests/hwsim/test_macsec.py index 871e465ac..ee9761657 100644 --- a/tests/hwsim/test_macsec.py +++ b/tests/hwsim/test_macsec.py @@ -146,7 +146,7 @@ def log_ip_macsec(): def log_ip_link(): cmd = subprocess.Popen([ "ip", "link", "show" ], stdout=subprocess.PIPE) - res = cmd.stdout.read() + res = cmd.stdout.read().decode() cmd.stdout.close() logger.info("ip link:\n" + res) @@ -482,7 +482,7 @@ def log_ip_macsec_ns(): def log_ip_link_ns(): cmd = subprocess.Popen([ "ip", "link", "show" ], stdout=subprocess.PIPE) - res = cmd.stdout.read() + res = cmd.stdout.read().decode() cmd.stdout.close() logger.info("ip link:\n" + res) @@ -490,7 +490,7 @@ def log_ip_link_ns(): "ip", "link", "show" ], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w')) - res = cmd.stdout.read() + res = cmd.stdout.read().decode() cmd.stdout.close() logger.info("ip link show (ns0):\n" + res) @@ -498,7 +498,7 @@ def log_ip_link_ns(): "ip", "link", "show" ], stdout=subprocess.PIPE, stderr=open('/dev/null', 'w')) - res = cmd.stdout.read() + res = cmd.stdout.read().decode() cmd.stdout.close() logger.info("ip link show (ns1):\n" + res) -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap