tc-testing: fix list handling
[ Upstream commitb4fd096cbb
] python lists don't have an 'add' method, but 'append'. Fixes:14e5175e9e
("tc-testing: introduce scapyPlugin for basic traffic") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
997285646a
commit
4b44486b8b
@ -36,7 +36,7 @@ class SubPlugin(TdcPlugin):
|
|||||||
for k in scapy_keys:
|
for k in scapy_keys:
|
||||||
if k not in scapyinfo:
|
if k not in scapyinfo:
|
||||||
keyfail = True
|
keyfail = True
|
||||||
missing_keys.add(k)
|
missing_keys.append(k)
|
||||||
if keyfail:
|
if keyfail:
|
||||||
print('{}: Scapy block present in the test, but is missing info:'
|
print('{}: Scapy block present in the test, but is missing info:'
|
||||||
.format(self.sub_class))
|
.format(self.sub_class))
|
||||||
|
Reference in New Issue
Block a user