消除测试用例里跳脱的部分

This commit is contained in:
2025-08-09 22:30:10 +08:00
parent 424e07a076
commit 50a6ebf6ed
7 changed files with 69 additions and 66 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]