From 1f6370fc89fee7cbe5b7a2981897644575beafb7 Mon Sep 17 00:00:00 2001 From: Xiyue Wang Date: Tue, 6 Nov 2018 02:14:02 -0500 Subject: [PATCH] ethtool: fix python3 compatible issue Signed-off-by: Xiyue Wang --- generic/tests/ethtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/tests/ethtool.py b/generic/tests/ethtool.py index d477eac0..280a0aec 100644 --- a/generic/tests/ethtool.py +++ b/generic/tests/ethtool.py @@ -146,7 +146,7 @@ def run(test, params, env): # only capture the new tcp port after offload setup original_tcp_ports = re.findall( r"tcp.*:(\d+).*%s" % guest_ip, - process.system_output("/bin/netstat -nap")) + process.system_output("/bin/netstat -nap").decode()) for i in original_tcp_ports: tcpdump_cmd += " and not port %s" % i -- GitLab