Skip to content

Commit

Permalink
tc-testing: fix list handling
Browse files Browse the repository at this point in the history
[ Upstream commit b4fd096 ]

python lists don't have an 'add' method, but 'append'.

Fixes: 14e5175 ("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>
  • Loading branch information
marceloleitner authored and gregkh committed Jul 14, 2021
1 parent d44313d commit 3c4a4c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def post_execute(self):
for k in scapy_keys:
if k not in scapyinfo:
keyfail = True
missing_keys.add(k)
missing_keys.append(k)
if keyfail:
print('{}: Scapy block present in the test, but is missing info:'
.format(self.sub_class))
Expand Down

0 comments on commit 3c4a4c0

Please sign in to comment.