aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlexandre Poirrier <apoirrie@cisco.com>2019-05-07 10:39:57 +0200
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-05-07 19:15:12 +0000
commitcc991497b830658bdf65b93538d91467ecddef42 (patch)
tree97363c6f18fed569c3f243ed86f2c92b4eea5eff /test
parent875158acd64244eeae431578e3b5a086d5e1f1c2 (diff)
make test: add python3 compatibility in extend_packet
Change-Id: I342ff8e44e0d1ebd9f2c8cc386372b2f5a731080 Signed-off-by: Alexandre Poirrier <apoirrie@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/framework.py b/test/framework.py
index 989fb3d75cf..1a22acd0115 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -756,8 +756,8 @@ class VppTestCase(unittest.TestCase):
packet_len = len(packet) + 4
extend = size - packet_len
if extend > 0:
- num = (extend / len(padding)) + 1
- packet[Raw].load += (padding * num)[:extend]
+ num = (extend // len(padding)) + 1
+ packet[Raw].load += (padding * num)[:extend].encode("ascii")
@classmethod
def reset_packet_infos(cls):