[dts] [PATCH V1] tests/link_flowctrl: fix to support byte type for py3
Jiang, YuX
yux.jiang at intel.com
Fri May 8 07:07:18 CEST 2020
Tested-by: Jiang, YuX <yux.jiang at intel.com>
-----Original Message-----
From: Jiang, YuX
Sent: Friday, May 8, 2020 12:54 PM
To: dts at dpdk.org
Cc: Jiang, YuX <yux.jiang at intel.com>
Subject: [dts][PATCH V1] tests/link_flowctrl: fix to support byte type for py3
From: "Jiang, YuX" <yux.jiang at intel.com>
Specify byte type in py3
Signed-off-by: Jiang, YuX <yux.jiang at intel.com>
---
tests/TestSuite_link_flowctrl.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flowctrl.py
index ed89162..ee190d0 100644
--- a/tests/TestSuite_link_flowctrl.py
+++ b/tests/TestSuite_link_flowctrl.py
@@ -52,7 +52,7 @@ class TestLinkFlowctrl(TestCase):
pause_frame_control = "\\x00\\xFF"
pause_frame_paddign = "\\x00" * 42
- pause_frame = '[Ether(src="%s",dst="%s",type=%s)/("%s%s%s")]'
+ pause_frame = '[Ether(src="%s",dst="%s",type=%s)/(b"%s%s%s")]'
frames_to_sent = 12
--
2.7.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestLinkFlowctrl.log
Type: application/octet-stream
Size: 158430 bytes
Desc: TestLinkFlowctrl.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200508/bfdfa307/attachment.obj>
More information about the dts
mailing list