修正测试用例

This commit is contained in:
2025-08-10 01:54:48 +08:00
parent 113a6e0dda
commit 9d5c7b15da
9 changed files with 76 additions and 71 deletions

View File

@@ -136,9 +136,12 @@ class GenPkt(object):
#数据
if sp[6] == None:
for _k in range(sp[5]):
#self.pkt_buf[_k + i] = random.randint(0, 255)
self.pkt_buf.append(random.randint(0, 255))
#for _k in range(sp[5]):
# #self.pkt_buf[_k + i] = random.randint(0, 255)
# self.pkt_buf.append(random.randint(0, 255))
temp = list(range(sp[5]))
temp = [(i & 0xff) for i in temp]
self.pkt_buf = self.pkt_buf + temp
else:
for _k in range(sp[5]):
#self.pkt_buf[_k + i] = sp[6][_k]